How to prevent users from entering specific words in string?

There is a line "Header"
There are words specific.
Where to read and how to implement the following:
The person enters a word in a string, say "Hello"
And the following options (for ease)
1) the Row is cleared and lights red in her text that the word is prohibited.
2) the window opens on the word banned
June 14th 19 at 19:15
1 answer
June 14th 19 at 19:17
You need to make a list of allowed words with "weights":
1. Positive: >1
2. Neutral: -1..1
3. Negative: <-1
Then, sum the weights and if >1 means skip the line.
Where can I read the implementation of such a method? - Twila commented on June 14th 19 at 19:20
a base ML. Anywhere. - Kyleigh_Hills commented on June 14th 19 at 19:23

Find more questions by tags PHP