private int get_word_index(string word) { for (int i = 0; i < KEYWORDS.Length; i++) if (word.ToUpper() == KEYWORDS[i]) return i; return -1; }