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.
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
- Normalize and tokenize the text
- Match phrases and words
- Distribute the weights
- Compute the shares and coverage
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
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.
