Check the presence of words and sentences based on the percentage in the files
With this code, you can check your words and sentences based on probability. For example, is the word house in a database or text or file? And whether it looks like the word house on a percentage basis. For example Text filtering and telegram robots can be done intelligently filtering. If users enter the word home or similar home, something will be done. Now the word entered may be sixty percent similar to the word home. This percentage is adjustable.
Different filtering can be done so that users can activate operators if they use a certain set of words.