Native Language Identification with User Generated Content

Gili Goldin, Ella Rabinovich, Shuly WintnerEMNLP 2018

Introduction

Native Language Identification (NLI) is the computational task of determining an author's first language (L1) based on their writing in a second language (L2). While traditional NLI research has predominantly utilized "learner corpora"—standardized essays from students (e.g., TOEFL datasets)—this study shifts the focus toward User Generated Content (UGC). Unlike students who are actively attempting to adhere to formal rules, highly fluent non-native speakers on platforms like Reddit often produce informal text that is indistinguishable from native writing at a glance. This research explores whether linguistic nuances and social behaviors can effectively identify L1 in such high-fluency, informal environments.

Methodology

The researchers framed NLI as a supervised classification problem using Logistic Regression across three sub-tasks: binary classification (native vs. non-native), language family identification (e.g., Germanic, Romance, Balto-Slavic), and specific L1 identification (23-way classification).

The core of the approach lies in a diverse set of engineered features:

  1. Content Features: Word unigrams and character tri-grams.
  2. Spelling and Grammar: Tracking specific error types (e.g., letter substitutions or word-order mistakes) using tools like Aspell and LanguageTool.
  3. Content-Independent Features: Stylistic markers such as function word frequency and Part-of-Speech (POS) n-grams.
  4. Social Network Features: Metrics of user "centrality" (e.g., Karma scores) and, crucially, subreddit participation preferences.
Performance of individual feature sets across classification tasks.

Dataset and Evaluation

The study utilized a massive corpus of English Reddit posts comprising over 230 million sentences (3.5 billion tokens). The dataset covers 23 native languages across 29 countries. To ensure data quality, the authors filtered for users with at least 100 sentences and used self-reported "flairs" as ground truth for L1. Evaluation was conducted in both in-domain (same subreddits) and out-of-domain (different subreddits) settings to test the model's generalizability beyond topic-specific keywords.

Key Insights

The Power of Social Context

Subreddit participation proved to be the most potent individual feature. The hypothesis that native speakers of specific languages frequent distinct "cultural" communities (e.g., Dutch speakers in /r/Netherlands) was strongly supported. Even without analyzing post content, social community membership provided a high-accuracy signal for L1 identification, maintaining strong performance even in out-of-domain tests.

In-domain vs. out-of-domain performance for the Subreddits feature set.

Linguistic "Fingerprints"

The analysis revealed that spelling and grammatical errors are rarely random. Non-native speakers often exhibit "interference" errors rooted in their L1 phonology or syntax. For instance, German speakers may substitute 'v' for 'f' (e.g., devense), reflecting German phonetic rules. Interestingly, native speakers were found to be "sloppier" in specific categories, such as omitting possessive apostrophes, whereas non-native errors were more structural, such as improper article usage or verb conjugation errors.

Results

The integrated model achieved significant accuracy, outperforming baseline measures. In-domain, the system reached 93.4% accuracy for binary classification and 86.1% for 23-way L1 identification. Even when social features (subreddits) were excluded, linguistic signals alone maintained a 69% accuracy on the 23-way task, demonstrating the robustness of the underlying linguistic patterns.

Conclusion and Future Work

This research demonstrates that NLI is highly feasible even in informal, high-fluency UGC. While social features like subreddit participation are powerful, they are platform-specific. Future work will focus on unsupervised approaches and testing the model on shorter text snippets (10–20 sentences) to better reflect typical social media interactions. Additionally, the team aims to employ adversarial learning to further improve robustness against domain shifts.

Summary updated

BibTeX
@inproceedings{goldin2018native,
  author = {Gili Goldin and Ella Rabinovich and Shuly Wintner},
  title = {{Native Language Identification with User Generated Content}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1395},
}
Figure