[fix] ordinal spellout for numbers which map directly to a simple rule

This commit is contained in:
Al
2016-07-03 23:42:40 -04:00
parent d6c44a0c09
commit 068e24a206

View File

@@ -218,7 +218,7 @@ class NumericExpressions(object):
last_rule = {}
left_multiply_rules = []
if num == 0:
if num == 0 or (num, gender, category) in rules:
ordinals = rules.get((num, gender, category))
if ordinals:
if not random_choice_ordinals: