At the moment, tts/context_analysis.cpp detects an ordinal number if a number is followed by st, nd, rd, th. This should be improved to:
Restrict the suffixes to their end-digit (e.g. 1 with st) -- or not (to cope with incorrect suffixes like 3st [*]);
Support locale-specific suffixes;
Support locale-specific variants (e.g. German uses n. to indicate ordinal numbers).
[*] Is this an ordinal or "stones" (weight)?
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1026780-better-ordinal-detection?utm_campaign=plugin&utm_content=tracker%2F254961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F254961&utm_medium=issues&utm_source=github).
At the moment,
tts/context_analysis.cpp
detects an ordinal number if a number is followed byst
,nd
,rd
,th
. This should be improved to:1
withst
) -- or not (to cope with incorrect suffixes like3st
[*]);n.
to indicate ordinal numbers).[*] Is this an ordinal or "stones" (weight)?