songleash

generate chansons en laisse
git clone https://a3nm.net/git/songleash/
Log | Files | Refs

commit ff35f55cede857c68ec274d457c675f5b6b2dde6
parent c73dbe32b3d173a72799cd41017627058ae63ab3
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 27 Aug 2015 02:16:20 +0200

no é in feminine

Diffstat:
common.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common.py b/common.py @@ -9,8 +9,8 @@ vowels_script = "aeiouy" semivowels = 'j8w' def fem(w): - return ((w.endswith('e') and not w[-2] in "ui") - or (w.endswith('es') and not w[-3] in "ui")) + return ((w.endswith('e') and not w[-2] in "uié") + or (w.endswith('es') and not w[-3] in "uié")) # http://stackoverflow.com/questions/517923/what-is-the-best-way-to-remove-accents-in-a-python-unicode-string