Parsing Utterances
Note: The links to the various NeonSkill methods in this documentation point to the mycroft-core
documentation. There is no material difference between them for the methods referenced and, since there is not publicly available neon_core
documentation, we will reference mycroft-core
instead.
Extracting data
Datetime
Extracts date and time information from a sentence.
Duration
Convert an english phrase into a number of seconds.
Numbers
extract_number()
takes in a string and extracts a single number.
extract_numbers()
takes in a string and extracts a list of numbers.
Matching
Vocab Matching
voc_match()
determines if the given utterance contains the vocabulary provided.
Fuzzy Matching
fuzzy_match()
performs a ‘fuzzy’ comparison between two strings.
Match One
match_one()
finds the best match from a list or dictionary given an input.