Function Definition Error

I can't figure out what the following error message means:

Arduino: 1.6.11 (Windows 10), Board: "Arduino/Genuino Uno"

In function 'String wordAnalysis(String)':

PrimeAI:80: error: a function-definition is not allowed here before '{' token

void setup() {

^

PrimeAI:86: error: a function-definition is not allowed here before '{' token

void loop(){

^

PrimeAI:89: error: expected '}' at end of input

}

^

exit status 1
a function-definition is not allowed here before '{' token

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Here is the segment of the code that is getting the error:

//STARTUP SEQUENCE
void setup() {
Serial.begin(9600);
activate();
}

//MAIN WORD PROCESSING LOOP SEQUENCE
void loop(){
Serial.println("Input Analysis:");
Serial.println(wordAnalysis(adminInput));
}

I doubt that's where the error is.
Please post ALL your code within </> code tags.

At first glance - it is saying you are MISSING a closing parentheses at the end of your program, but it could be missing anywhere in the middle == unbalanced parentheses.

Shit, youre right. I missed a "}" in the middle of my code. Thank you!

Happy to help!
In the Arduino editor - type CTRL-T to reformat - that may make finding missing structure a little easier.