I’m writing a skill that digs through my browser bookmarks and pulls out relevant matches to a spoken phrase. So for example if I say “Search my bookmarks for chicken” I want it to find all the recipes I have stored for chicken.
I thought that the smart thing to use here was
mycroft.util.parse.fuzzy_match(), but it’s not doing what I expected.
In a list of bookmarks with titles like
Chicken Kiev ,
Chicken Soup with Garlic and Sour Cream , and
Chicken Parm Lasagna, the most relevant according to this function is
Arch Linux. (score: 0.5) That soup recipe has a score of 0.26!
Now I know that I could just do a search for the keyword, but that’d have its own problems like “Chicken Parm” wouldn’t match “Chicken Parmesean” for example.
What’s the “right” way to do this?