Add related language detection functions