I am creating a new skill for movie trivia. I noticed that some movie names are changed from recognized utterance to data passed to code (and I don’t think the problem is with the regex, but still will provide it).
For example the recognized utterance is “movie info about harry potter and the chamber of secrets”.
In the code I get “harry potter and chamber of secrets”. This of course breaks my query.
My vocab contains:
tell me who is playing in
who is playing in
who’s playing in
movie info about
My regex is:
(tell me who is playing in|who is playing in|who’s playing in|movie info about) (?P.*)
I get in the code the named group with :
movie = message.data.get(‘MovieName’)
I am checking with https://regex101.com/ and the MovieName named group contains the correct thing.
What am I missing? Is somehow Adapt or some other part of Mycroft stripping the definite article? Or have I made a mistake somewhere?
Also if (developer questions are with if-else structures it seems) this is the expected behaviour for some reason, how can I get the raw utterance as possible work-around?