Added simple implementation of language matching