alex.components.nlg.tools package¶
Submodules¶
alex.components.nlg.tools.cs module¶
alex.components.nlg.tools.en module¶
A collection of helper functions for generating English.
- alex.components.nlg.tools.en.every_word_for_number(number, ordinary=False, use_coupling=False)[source]¶
- params: ordinary - if set to True, it returns ordinal of the number (fifth rather than five etc).
- use_coupling if set to True, it returns number greater than 100 with “and” between hundreds and tens
- (two hundred and seventeen rather than two hundred seventeen).
Returns a word given a number 1-100