#Alternative Words Format

1 messages · Page 1 of 1 (latest)

undone escarp
#

Just hoping to save myself some time and headache overthinking this, and it may help others I hope.

Is this valid? go(ing|es)
Or do I have to (or should I) use full words? (going|goes)
Also is what['s] valid?

Thanks in advance for any and all help.

jovial atlas
#

The first is valid. No need to use full words. The second however should not include the punctuation. That is always stripped before it runs through the matching stage. Use what[s] instead.

undone escarp
#

Thanks, really appreciate the response.
so much to learn

boreal bison
#

Apostrophe is not stripped. Only punctuation at the beginning and end. https://github.com/home-assistant/hassil/blob/83499777e3bbf836c5bb9dc672da30b0baa4173c/hassil/util.py#L190

You should replace the apostrophe with [(’|')] because STT or typing with autocorrect keyboards may omit, present straight quotes, or smart quotes.

GitHub

Intent parsing for Home Assistant. Contribute to home-assistant/hassil development by creating an account on GitHub.