kinda simple but it will eat you alive....
what u need to do is set a var
have the persons nick then how many times they said it then in the var would be equal to the word said
eg: %doodperson.2 B*tch
or it could be done the other way around
eg %doodperson.B*tch 2
this way can kinda get tedious and eat your resourceses alive
u can allways try a hash or even an ini file if u want