Closed tomfunk closed 3 years ago
Reading through the Issue I don't believe the OP wanted to convert the Month to a number. I also wouldn't want this to be default behaviour as this is unexpected. Can you remove the month being converted to an integer logic?
Ripped out the month stuff. I could rework it as an variable option like convert_ordinals
and add_ordinal_ending
if you think it could be useful.
fixes #31
Modified the logic for
Token.has_large_scale
so thatWordType.LITERAL_INT
andWordType.LITERAL_FLOAT
only return True if their values are equal to one of the listedSCALES
It also wasn't clear from the issue whether the month not being represented as a number was considered a problem so I created a new
WordType.MONTH
for months and the conventional 3 character abbreviation (e.g. november and nov) that returns the integer value for a given month.