plint

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

commit eaa770c76db83135bfa0561c4161885482de617c
parent 74b3f359263703672ec7224b09c74ea6e22b23aa
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 13 Mar 2012 16:08:33 +0100

remove TODOs

Diffstat:
metric.py | 6+++---
vowels.py | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/metric.py b/metric.py @@ -58,7 +58,7 @@ def feminine(align, verse): return ['F'] # mute -ent if align[-2][1] > 0 and align[-2][0] == 'e': return ['M'] # non-mute "-ent" by the choice of metric - # and now, what? "tient" vs. "lient" for instance, + # what now? "tient" vs. "lient" for instance, # TODO check pronunciation? :-/ return ['M', 'F'] @@ -113,10 +113,10 @@ def parse(text, bound): for word in words: word.append(' ') chunks = sum(words, [])[:-1] - + # return all possibilities to weigh the vowel clusters, annotated by # the femininity of the align (depending both on the align and # original text) - return list(map((lambda x : (x, feminine(x, original_text))), + return list(map((lambda x: (x, feminine(x, original_text))), fit(chunks, 0, bound))) diff --git a/vowels.py b/vowels.py @@ -43,7 +43,7 @@ def possible_weights(chunk): return [1, 2] if 'é' in chunk or 'è' in chunk: return [2] - - # TODO hmm + + # we can't tell return [1, 2]