Overview
| Comment: | [graphspell] getSuggestions: always sort first list found, assuming that list 1 and 2 might be empty |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | graphspell |
| Files: | files | file ages | folders |
| SHA3-256: |
90977551b1bd19e3568548b4fb177c56 |
| User & Date: | olr on 2020-09-09 08:37:02 |
| Other Links: | manifest | tags |
Context
|
2020-09-09
| ||
| 11:30 | [fr] faux positif check-in: dbb2b4e13c user: olr tags: trunk, fr | |
| 08:37 | [graphspell] getSuggestions: always sort first list found, assuming that list 1 and 2 might be empty check-in: 90977551b1 user: olr tags: trunk, graphspell | |
| 08:35 | [fr] ajustements check-in: bffc11601b user: olr tags: trunk, fr | |
Changes
Modified graphspell-js/ibdawg.js from [250621182e] to [544f660d8a].
| ︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | - - - - - - - + + + + + |
this.nDistLimit = Math.min(this.nDistLimit, this.nMinDist+1);
}
}
}
getSuggestions (nSuggLimit=10) {
// return a list of suggestions
|
| ︙ |
Modified graphspell/ibdawg.py from [ca3736e14d] to [f1a1c3c7ab].
| ︙ | |||
69 70 71 72 73 74 75 | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - - - - - + + - - - - + + + + + + + + |
if nDist < self.nMinDist:
self.nMinDist = nDist
self.nDistLimit = min(self.nDistLimit, self.nMinDist+1)
def getSuggestions (self, nSuggLimit=10):
"return a list of suggestions"
# we sort the better results with the original word
|
| ︙ |