plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 54867108e2fe53802cce69c5594eb4c503068aef
parent afcb5fa6fecc60df80276a58741d4ac93f859318
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 11 Aug 2019 22:53:48 +0200

iaou

Diffstat:
vowels.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/vowels.py b/vowels.py @@ -107,6 +107,9 @@ def possible_weights_seed(chunk): # antiaƩrien; but let's play it safe if "iaƩ" in chunk['text']: return [2, 3] + # giaour, miaou, niaouli + if "iaou" in chunk['text']: + return [2, 3] if chunk['text'] in ['ai', 'ou', 'eu', 'ei', 'eau', 'au', 'oi']: return [1] # we can't tell