commit 59109988a626737a9613fc5ed66b52987bb0bd73
parent 16c89d3734267fe5ed85f7df66724cce207c97c2
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 1 Feb 2014 13:22:12 +0100
dioïde, etc.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/vowels.py b/vowels.py
@@ -97,6 +97,10 @@ def possible_weights_seed(chunk):
"""Return the possible number of syllabes taken by a vowel chunk"""
if len(chunk['text']) == 1:
return [1]
+ # dioïde, maoïste, taoïste
+ 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]
# we can't tell