diff --git a/text_to_num/lang/english.py b/text_to_num/lang/english.py index bd702da..a9dcfa4 100644 --- a/text_to_num/lang/english.py +++ b/text_to_num/lang/english.py @@ -146,11 +146,11 @@ def ord2card(self, word: str) -> Optional[str]: source = RAD_MAP[source] elif source.endswith("ie"): source = source[:-2] + "y" - elif source.endswith('fif'): # fifth -> five + elif source.endswith('fif'): # fifth -> five source = source[:-1] + 've' - elif source.endswith('eigh'): # eighth -> eight + elif source.endswith('eigh'): # eighth -> eight source = source + 't' - elif source.endswith('nin'): # ninth -> nine + elif source.endswith('nin'): # ninth -> nine source = source + 'e' if source not in self.NUMBERS: return None