ChanceNCounter

Results 215 comments of ChanceNCounter

On reflection, probably `lingua_franca.config.set('en_AU', 'number_scale', 'short')`, or else something dict-based, so that it can be read from JSON or YAML in a sane fashion. It might be burdensome to have...

Discovered: Mycroft is currently wrapping `extract_datetime()` to pass the user's configured time zone. That's one setting that ought to be exposed so it can be set here. I think one...

Recently identified candidates for config settings: * timezone * number format (fraction/decimal/scientific)

Consider a decorator enabling e.g. skill authors to ensure certain defaults for snippets of code, then return LF settings to their original state. That is, decorate a function to specify...

The existing library's date handling is also open to improvement! (Naturally.) I agree that the handling of relative dates and times needs love and hugs. It's had much love and...

This might be better accomplished when the localized modules are crawled at load time, which probably wouldn't affect the memory footprint.

Working fix, need to write tests and then I'll PR.

Update: I've improved the fix to ensure that `extract_number()` will stop pulling decimal places as soon as it encounters a tokenized number which was not adjacent to the previous token...

This seems like as good a place as any to chime in for posterity. I think `extract_datetime` should iterate over degrees of specificity until it gets a good match. Take...

@retrodaredevil Makes sense. How do you envision using the output? Is a tuple the way?