Commit cf53b31
committed
feat: Add semantic naming suggestions feature (v1.5)
Major new feature that provides intelligent function name suggestions
based on execution semantics using the validated LJWP mixing formula.
Key Changes:
- Integrated semantic naming engine into main CLI tool
- Added 200+ action verbs with LJWP coordinate mappings
- Implemented cosine similarity matching in 4D semantic space
- Added --suggest-names and --top-suggestions CLI flags
- Comprehensive test coverage (35 new tests, 59 total)
- Updated documentation and version to 1.5
Technical Details:
- SemanticNamingEngine uses validated mixing formula from PR #37
- Vocabulary expanded from 50 to 200+ verbs covering:
* Love domain: connection, communication, care
* Justice domain: validation, authorization, rules
* Power domain: transformation, CRUD, control flow
* Wisdom domain: analysis, search, metrics
- Context-aware suggestions extract noun from function name
- Performance optimized with efficient similarity calculations
Testing:
- 35 new tests for semantic naming engine
- All 59 tests passing
- Verified CLI integration end-to-end
- Tests validate coordinate normalization and accuracy
Documentation:
- Updated README with v1.5 features
- Updated version badges (tests: 59, version: 1.5)
- Added usage examples for new CLI flags
This feature transforms the Harmonizer from a detector to a teacher,
providing actionable suggestions for better function names based on
what the code actually does.1 parent e12545f commit cf53b31
File tree
4 files changed
+668
-14
lines changed- harmonizer
- tests
4 files changed
+668
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
40 | 69 | | |
41 | 70 | | |
42 | 71 | | |
| |||
101 | 130 | | |
102 | 131 | | |
103 | 132 | | |
| 133 | + | |
104 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
105 | 138 | | |
106 | 139 | | |
107 | 140 | | |
108 | 141 | | |
109 | 142 | | |
110 | 143 | | |
111 | | - | |
| 144 | + | |
112 | 145 | | |
113 | 146 | | |
114 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
109 | | - | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
| |||
235 | 246 | | |
236 | 247 | | |
237 | 248 | | |
| 249 | + | |
| 250 | + | |
238 | 251 | | |
239 | 252 | | |
240 | 253 | | |
| |||
245 | 258 | | |
246 | 259 | | |
247 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
248 | 291 | | |
249 | 292 | | |
250 | 293 | | |
251 | 294 | | |
252 | 295 | | |
253 | | - | |
| 296 | + | |
254 | 297 | | |
255 | 298 | | |
256 | 299 | | |
| |||
319 | 362 | | |
320 | 363 | | |
321 | 364 | | |
322 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
323 | 377 | | |
324 | 378 | | |
325 | 379 | | |
| |||
383 | 437 | | |
384 | 438 | | |
385 | 439 | | |
386 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
387 | 445 | | |
388 | 446 | | |
389 | 447 | | |
| |||
0 commit comments