Commit 7193aff345112f37cfffba818c81fc07716063f1
1 parent
6a9e3a9f
Exists in
master
and in
1 other branch
Corrige acento no tratamento de plural
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/AplicaRegras.py
| ... | ... | @@ -393,8 +393,8 @@ class AplicaRegras(object): |
| 393 | 393 | |
| 394 | 394 | # Alterar uma palavra do plural para o singular |
| 395 | 395 | def analisar_plural(self, token): |
| 396 | - if(token[-3:] == "oes" or token[-2:] == "aes" or token[-2:] == "aos"): | |
| 397 | - return token[0:-3]+"ao" | |
| 396 | + if(token[-3:] == "ões".decode('utf-8') or token[-2:] == "ães".decode('utf-8') or token[-2:] == "ãos".decode('utf-8')): | |
| 397 | + return token[0:-3]+"ão".decode('utf-8') | |
| 398 | 398 | elif(token[-3:] == "res" or token[-2:] == "zes" or token[-2:] == "nes"): |
| 399 | 399 | return token[0:-2] |
| 400 | 400 | elif(token[-3:] == "ses"): | ... | ... |