Alright, is there a way to organize words into categories. Like classify "good", "well", "fine" as Positive. And "bad", "not good", "terrible" as Negative. I know you can do:
You need to declare the function before you can use it.
ProCoder's way is also good. You can combine both methods, putting the code that checks if the string is contained in the vector (or whatever container you choose to use) inside the function.