Skip to content

Commit

Permalink
Handle final 'a' as 'A'.
Browse files Browse the repository at this point in the history
A single 'a' at the end of the word is never a short vowel.
  • Loading branch information
elektito committed May 4, 2020
1 parent 3d6953d commit 5c57039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion finglish/f2p.py
Expand Up @@ -75,7 +75,9 @@ def variations(word):
"""Create variations of the word based on letter combinations like oo,
sh, etc."""

if len(word) == 1:
if word == 'a':
return [['A']]
elif len(word) == 1:
return [[word[0]]]
elif word == 'aa':
return [['A']]
Expand Down
2 changes: 1 addition & 1 deletion finglish/version.py
@@ -1 +1 @@
__version__ = '1.4.8'
__version__ = '1.5.1'

0 comments on commit 5c57039

Please sign in to comment.