The utterance is now placed on the bus along with its language code. If not specified, it uses "en-us". Added a new mycroft.util.parse module. It contains the normalize() function. Normalization currently does two things: * Expands contractions ("they're" -> "they are", etc) * Optionally removes articles ("a", "an", "the"). Removing is the default. * Textual numbers become digits, up to 20. E.g. "What is the weather in four days" becomes "What is weather in 4 days". NOTE: This is potentially a breaking change! Remove "the", "a" and "an" from your .voc files! Skill changes: * I cleaned up the .voc files for the default Skills. * Split the date_time keyword into an extra entity. Now a "QueryKeyword.voc" exists, with "what|tell" instead of combing that into "what is time" in the TimeKeyword.voc. * Volume skill now accepts 1-11, e.g. "turn volume to 11" |
||
---|---|---|
.. | ||
__init__.py |