iamjake648 / jasper-wiki

A Wikipedia module for Jasper
GNU General Public License v2.0
5 stars 6 forks source link

Wiki only responds to keyword wicky #2

Closed Netanel-M closed 8 years ago

Netanel-M commented 8 years ago

Unusual issue, when I say "wiki" and the stt engine translates it to "wicky" the module loads, but when the stt engine translates it to "wiki" the module is ignored.

Netanel-M commented 8 years ago

I seemed to have fixed it, issue is in Wiki.py. I switched line wiki= bool(re.search(r'\Wiki\b',text, re.IGNORECASE)) with wiki= bool(re.search(r'\wiki\b',text, re.IGNORECASE)) in function is_valid

iamjake648 commented 8 years ago

Yeah the different speech engines are pretty bad at picking up "Wiki" and they all handle it differently. Should be easy enough to change the keyword for your engine though. Not sure why changing that line would do anything - you are just changing a capital letter on a string that is already ignoring case.