plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 39ba6402b2d72e508a4c33f43e8889c933b6858d
parent 6f1cf225469fbfaeec70e6a5b851bd38cfc4268a
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 17 Aug 2017 01:10:17 +0200

point out problem

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

diff --git a/verse.py b/verse.py @@ -66,6 +66,9 @@ def elision(word, was_cap): if word == "huis": # special case, "huis" is elided but "huis clos" isn't return [True, False] + # TODO: this looks up the simplified word (e.g., "qu" => "q") + # whereas the haspirater index knows about the original word + # so this should be somehow fixed to look at the original word instead... return list(map((lambda s: not s), haspirater.lookup(word))) if is_vowels(word[0]): return [True]