plint

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

commit 22489045c78522c65264ce257043113cde97a20c
parent d176b3c9a172ae41870184ce066bf5cbeab17639
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 11 Aug 2019 22:18:35 +0200

antiaérien

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

diff --git a/vowels.py b/vowels.py @@ -104,6 +104,9 @@ def possible_weights_seed(chunk): if (chunk['text'][-1] == 'ï' and len(chunk['text']) >= 3 and not chunk['text'][-3:-1] == 'ou'): return [3] + # antiaérien; but let's play it safe + if (chunk['text'].contains("iaé"): + return [2, 3] if chunk['text'] in ['ai', 'ou', 'eu', 'ei', 'eau', 'au', 'oi']: return [1] # we can't tell