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, ordinal=False, use_coupling=False)[source]¶ - params: ordinal - if set to True, it returns ordinal 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