This is really a problem with using voice recognition and ChatScript. While playing a math game users will say “four,” but it’s input as “for” and the input will not process correctly. Same with 2 and “to” or “too.” So, we’re trying to substitute numbers for their homophones, but only under certain conditions, such as while playing a game. I don’t want to just add these to the substitutes.txt file, since I don’t want the substitution to always occur. What’s the best way to do this? I tried making concepts:
~gametwo(to too toe)
~gamefour(for far fur)
then added them to substitutes.txt
~gametwo 2
~gamefour 4
but it didn’t work. Is it possible to use concepts in this file? If not what’s the best way to do this?