I am trying to write a program that will perform a grammar check on a very limited customized language of english with japanese suffixes.
I am having trouble understand why I repeatedly get "it is ungrammatical" even though I am inputting man-ga caught fish as my sentence. Every other part works fine up till this part and the code that checks the suffixes also works if the if statement is deleted.
//Check if the base of 1st word is one of the nouns, if not ungrammatical
if(w1base != "man" || w1base != "woman" || w1base != "fish")
{
cout << "Your input is not grammatical Eng++";
return 0;
}
// Reset i=0 to cycle through the 2nd word and marker
i=0;
// w1Mark is now something after the dash check if it is not -ga declare un grammatical
while (w1Mark != "-ga")
{
cout << "Your input is not grammatical Eng++";
return 0;
}
}