Got the language finder working using pattern matching.