GoodFrench: Fix detection.

master
Valentin Lorentz 2011-06-30 17:36:47 +02:00
parent 050e0e9849
commit 4a2f921685
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ class SpellChecker:
mask="j'[^' ]+ pas")
firstPerson = 'un verbe à la première personne ne finit pas par un `t`'
notAS = 'ce verbe ne devrait pas se finir par un `s` à cette personne.'
self._detect(mode='regexp', correct=firstPerson, mask="j'[^ ]*t")
self._detect(mode='regexp', correct=firstPerson,mask="je( ne)? [^ ]*t")
self._detect(mode='regexp', correct=firstPerson, mask="j'[^ ]*t\W")
self._detect(mode='regexp', correct=firstPerson,mask="je( ne)? [^ ]*t\W")
self._detect(mode='regexp', correct=notAS,
mask="(il|elle|on)( ne | n'| )[^ ]*[^u]s\W")
# [^u] is added in order to not detect 'il [vn]ous...'