diff --git a/data/excecoesPlural.csv b/data/excecoesPlural.csv index f9ab868..e3c95bd 100644 --- a/data/excecoesPlural.csv +++ b/data/excecoesPlural.csv @@ -1,2 +1,7 @@ vlibras -libras \ No newline at end of file +libras +lápis +vírus +tagênis +ônibus +férias \ No newline at end of file diff --git a/src/AplicaRegras.py b/src/AplicaRegras.py index 9ca8115..421a16c 100644 --- a/src/AplicaRegras.py +++ b/src/AplicaRegras.py @@ -410,7 +410,7 @@ class AplicaRegras(object): pass num = True - if tag != "NPR-P" and tag[-2:] == "-P" or tag[-2:] == "_P" and self.verificar_excecao_plural(it.get_word()): + if tag != "NPR-P" and (tag[-2:] == "-P" or tag[-2:] == "_P") and self.verificar_excecao_plural(it.get_word()): singular = self.analisar_plural(it.get_word()) lista_simplificada[it.get_count()][0] = singular -- libgit2 0.21.2