rhdunn / cainteoir-engine

The Cainteoir Text-to-Speech core engine
http://reecedunn.co.uk/cainteoir/
GNU General Public License v3.0
43 stars 8 forks source link

Better ordinal detection #43

Open rhdunn opened 11 years ago

rhdunn commented 11 years ago

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:

  1. Restrict the suffixes to their end-digit (e.g. 1 with st) -- or not (to cope with incorrect suffixes like 3st [*]);
  2. Support locale-specific suffixes;
  3. 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).