[Paper Review] Learning to Explain Non-Standard English Words and Phrases
This paper proposes a neural sequence-to-sequence model that generates contextual explanations for unseen non-standard English expressions using a dual encoder architecture—one word-level for context and one character-level for the target expression. Trained on 15 years of UrbanDictionary data, the model produces plausible definitions with measurable confidence, advancing beyond keyword-matching slang dictionaries.
We describe a data-driven approach for automatically explaining new, non-standard English expressions in a given sentence, building on a large dataset that includes 15 years of crowdsourced examples from UrbanDictionary.com. Unlike prior studies that focus on matching keywords from a slang dictionary, we investigate the possibility of learning a neural sequence-to-sequence model that generates explanations of unseen non-standard English expressions given context. We propose a dual encoder approach—a word-level encoder learns the representation of context, and a second character-level encoder to learn the hidden representation of the target non-standard expression. Our model can produce reasonable definitions of new non-standard English expressions given their context with certain confidence.
Motivation & Objective
- To develop a data-driven method for explaining non-standard English expressions in context, moving beyond static slang dictionaries.
- To address the challenge of defining new or unseen non-standard expressions that lack predefined entries.
- To leverage contextual information and character-level representations to improve definition generation for rare or novel expressions.
- To evaluate whether neural sequence-to-sequence models can generalize to generate reasonable definitions for previously unseen slang terms.
Proposed method
- A dual encoder architecture is used: one transformer-based encoder processes the surrounding context at the word level.
- A second character-level encoder learns the internal representation of the target non-standard expression using subword units.
- The context and expression representations are combined and passed through a decoder to generate a definition in natural language.
- The model is trained end-to-end on a large-scale dataset of 15 years of crowdsourced definitions from UrbanDictionary.
- Attention mechanisms are applied to align relevant context and expression features during decoding.
- Model confidence scores are generated to assess the reliability of each predicted definition.
Experimental results
Research questions
- RQ1Can a neural sequence-to-sequence model generate plausible definitions for non-standard English expressions not seen during training?
- RQ2How well does context-aware representation learning improve definition quality compared to keyword-based lookup?
- RQ3To what extent can character-level encoding capture semantic meaning of novel or rare non-standard expressions?
- RQ4Does the model generalize to expressions outside the training vocabulary with reasonable confidence?
Key findings
- The model successfully generates coherent and contextually relevant definitions for unseen non-standard expressions.
- The dual encoder approach improves definition quality by combining contextual and morphological information.
- The model produces definitions with measurable confidence, allowing for filtering of low-reliability outputs.
- The approach outperforms keyword-matching baselines in generating explanations for novel expressions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.