Overview
Comment: | [cli] clarity for spelling suggestion |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | cli |
Files: | files | file ages | folders |
SHA3-256: |
4858dc598eb41f3ff6ed1aacd6391dde |
User & Date: | olr on 2025-09-23 11:14:16 |
Other Links: | manifest | tags |
Context
2025-09-23
| ||
11:48 | [graphspell] suggestion mechanism optimization: parse graph arcs according to similar chars Leaf check-in: 58fed39787 user: olr tags: trunk, graphspell | |
11:14 | [cli] clarity for spelling suggestion check-in: 4858dc598e user: olr tags: trunk, cli | |
10:21 | [fr] ajustements check-in: 5ab1933cc0 user: olr tags: trunk, fr | |
Changes
Modified grammalecte-cli.py from [8ffd099fca] to [807abadcc4].
︙ | |||
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | + + | echo(" - " + sElem) for sMorph, sMeaning in aRes: echo(" {:<40} {}".format(sMorph, sMeaning)) elif sText.startswith("!"): # spelling suggestions for sWord in sText[1:].strip().split(): if sWord: print(sWord) for lSugg in oSpellChecker.suggest(sWord): echo(" | ".join(lSugg)) if xArgs.debug: for sSugg in lSugg: nDist = strt.distanceDamerauLevenshteinX(sWord, sSugg) echo(f"{sSugg:30} {nDist}") print() elif sText.startswith(">"): # path in the word graph oSpellChecker.drawPath(sText[1:].strip()) elif sText.startswith("="): # search in dictionnary sSearch = sText[1:].strip() if "=" in sSearch: |
︙ |