Lexical-matching dialect identification

Lexicon-based Dialect Identification

Estimating the dialect by counting the words that are distinctive of each dialect in the text, while splitting the weight of words shared between dialects.

Resource-based

How it works

Each dictionary entry has a list of the dialects it is used in. The text is matched by phrases, then words, then stems, and each match gives each of its k dialects a weight of 1/k. Each dialect's share and the coverage rate are shown.

Steps

  1. Normalize and tokenize the text
  2. Match phrases and words
  3. Distribute the weights
  4. Compute the shares and coverage
InputsText
OutputsRank the dialects by share and by indicative words
ComplexityO(n)

Example

«شلونك؟ هسه وصلت» → شلون (Iraqi, Gulf) + هسه (Iraqi) → Iraqi comes first

Strengths

  • Transparent, and explains the reason for its verdict
  • Needs no training data

Cons

  • Fails when the text has no distinctive words
  • Does not distinguish city dialects
  • Colloquial spelling is not standardized

Uses

  • Education
  • Preliminary analysis of social media corpora

Libraries that implement it

Custom dictionaries

See Libraries guide For licenses and runtime requirements.

References

  • Zaidan, O. F. & Callison-Burch, C. (2014). Arabic Dialect Identification. Computational Linguistics, 40(1), 171–202.
  • Bouamor, H. et al. (2018). The MADAR Arabic Dialect Corpus and Lexicon. LREC 2018.