commit f80e1211ca331d24d27dcfade277fd21802d8100
parent bf8ccc45eda2517955d90a60acadd446be37ee09
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 11 Aug 2019 20:34:43 +0200
add base rules for vowels, fixes "oublieux" problem
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vowels.py b/vowels.py
@@ -104,8 +104,8 @@ def possible_weights_seed(chunk):
if (chunk['text'][-1] == 'ï' and len(chunk['text']) >= 3 and not
chunk['text'][-3:-1] == 'ou'):
return [3]
- #if chunk in ['ai', 'ou', 'eu', 'ei', 'eau', 'au', 'oi']:
- # return [1]
+ if chunk['text'] in ['ai', 'ou', 'eu', 'ei', 'eau', 'au', 'oi']:
+ return [1]
# we can't tell
return [1, 2]