this might be a bit of a unusual question. I have implemented voice input in my application and I need some kind of mechanism that will understand the semantics of human language. Assume the string msg
contains the sentence that the user said.
For example lets say the user said "Turn off the device." In this case I could do something like this:
if(msg.contains("Turn off")){
...
}
However this would not cover other cases like if the user said "Power off the device" or other languages.
So I'd need some kind of library/package that can pull off something like this:
if(LanguageParser.stringHasMeaning(msg, "Turn off")){
...
}
Is there any library/package to achieve something like this in Flutter or in general. I know that the detection is not going be 100% accurate. Any guidance is appreciated. Thanks ^^