is_dialect_of
is_dialect_of(lang1, lang2)
lang1
lang2
Returns true if lang1 represents a form of lang2. It doesn’t go both ways, so make sure that lang1 comes first.
is_dialect_of('en-US', 'en'), # true is_dialect_of('en', 'en-US'), # false
18.223.171.162