Overview
Comment: | [fr] màj: suggestions des verbes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | fr |
Files: | files | file ages | folders |
SHA3-256: |
21957bde87ae32a3aecaa9944eec8964 |
User & Date: | olr on 2017-06-27 20:04:50 |
Original Comment: | [fr] suggestions des verbes |
Other Links: | manifest | tags |
Context
2017-06-28
| ||
06:16 | [fr] nr: confusion <la/l’a> check-in: f47e4bd4a5 user: olr tags: trunk, fr | |
2017-06-27
| ||
20:04 | [fr] màj: suggestions des verbes check-in: 21957bde87 user: olr tags: trunk, fr | |
19:45 | [fr][bug] trunk broken check-in: 58098eb682 user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/modules-js/conj.js from [55db24a585] to [82dfb400da].
︙ | |||
83 84 85 86 87 88 89 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + - + | // returns raw informations about sVerb if (!_dVerb.hasOwnProperty(sVerb)) { return null; } return _lVtyp[_dVerb[sVerb][0]]; } |
︙ | |||
125 126 127 128 129 130 131 132 133 134 135 136 137 138 | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | + + + | aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q2")); aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q3")); aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q4")); aSugg.delete(""); // if there is only one past participle (epi inv), unreliable. if (aSugg.size === 1) { aSugg.clear(); } if (sMorph.includes(":V1")) { aSugg.add(sInfi); } } return aSugg; } function _getTags (sVerb) { |
︙ |
Modified gc_lang/fr/modules-js/gce_suggestions.js from [ea10b9481e] to [4ab154433f].
︙ | |||
487 488 489 490 491 492 493 | 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 | - + | return phonet.hasSimil(sWord, sPattern); } function suggSimil (sWord, sPattern) { // return list of words phonetically similar to sWord and whom POS is matching sPattern let aSugg = phonet.selectSimil(sWord, sPattern); for (let sMorph of _dAnalyses._get(sWord, [])) { |
︙ |
Modified gc_lang/fr/modules/conj.py from [d5dfd58ad9] to [ec8e754549].
︙ | |||
57 58 59 60 61 62 63 | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | - + | def getSimil (sWord, sMorph, sFilter=None): if ":V" not in sMorph: return set() sInfi = sMorph[1:sMorph.find(" ")] tTags = _getTags(sInfi) aSugg = set() |
︙ | |||
91 92 93 94 95 96 97 98 99 100 101 102 103 104 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | + + | aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q2")) aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q3")) aSugg.add(_getConjWithTags(sInfi, tTags, ":PQ", ":Q4")) aSugg.discard("") # if there is only one past participle (epi inv), unreliable. if len(aSugg) == 1: aSugg.clear() if ":V1" in sMorph: aSugg.add(sInfi) return aSugg def getConjSimilInfiV1 (sInfi): if sInfi not in _dVerb: return set() tTags = _getTags(sInfi) |
︙ |
Modified gc_lang/fr/modules/gce_suggestions.py from [ab62364774] to [948c38b1f8].
︙ | |||
374 375 376 377 378 379 380 | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 | - + | def suggSimil (sWord, sPattern=None): "return list of words phonetically similar to sWord and whom POS is matching sPattern" # we don’t check if word exists in _dAnalyses, for it is assumed it has been done before aSugg = phonet.selectSimil(sWord, sPattern) for sMorph in _dAnalyses.get(sWord, []): |
︙ |