added nl, es plural rules, thanks Vladyslav
This commit is contained in:
@@ -13,5 +13,8 @@ get_plural_id = lambda n: int(n != 1)
|
||||
# Construct and return plural form of *word* using
|
||||
# *plural_id* (which ALWAYS>0). This function will be executed
|
||||
# for words (or phrases) not found in plural_dict dictionary
|
||||
# construct_plural_form = lambda word, plural_id: (word + 'suffix')
|
||||
construct_plural_form = lambda word, plural_id: (word +
|
||||
('es' if word[-1:] in ('s', 'x', 'y', 'l', 'r', 'n', 'd', 'z', 'j') or
|
||||
word[-2:] == 'ch'
|
||||
else 's'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user