plint

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

commit 7cdf3686f96e9e7bfd191bed623b5e5ade0e0519
parent f5bfaa1b3f39db027387b09048c603463ce1a09d
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 27 Jul 2014 12:22:40 +0200

fix "yole"

Diffstat:
TODO | 1-
vowels.py | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/TODO b/TODO @@ -1,5 +1,4 @@ - profiling -- "yole" with permissive should be one syllable only - highlight possible hemistiche positions where an hemistiche could have been placed - document expected errors of test.sh and commit necessary files - remove kludge for invalid characters, split them in specific chunks diff --git a/vowels.py b/vowels.py @@ -78,7 +78,7 @@ def possible_weights_approx(chunk): return [1, 2] # "pouah" if chunk == "ao": return [1, 2] # "paon" - for x in ['oa', 'ea', 'eua', 'euo', 'ua', 'uo', 'yo', 'yau']: + for x in ['oa', 'ea', 'eua', 'euo', 'ua', 'uo', 'yau']: if x in chunk: return [2] # beware of "déesse"