[Paper Review] Potential Idiomatic Expression (PIE)-English: Corpus for Classes of Idioms
This paper introduces the Potential Idiomatic Expression (PIE)-English corpus, a large-scale, multi-class annotated dataset of 20,174 English samples with 1,197 idiom cases across 10 figurative language classes—metaphor, simile, euphemism, personification, oxymoron, paradox, hyperbole, irony, parallelism, and literal. It achieves a high inter-annotator agreement of 88.89% and demonstrates strong performance in classification, with BERT attaining 93.4% accuracy and 94.8% F1, offering a valuable resource for advancing token-based idiom detection in NLP.
We present a fairly large, Potential Idiomatic Expression (PIE) dataset for Natural Language Processing (NLP) in English. The challenges with NLP systems with regards to tasks such as Machine Translation (MT), word sense disambiguation (WSD) and information retrieval make it imperative to have a labelled idioms dataset with classes such as it is in this work. To the best of the authors' knowledge, this is the first idioms corpus with classes of idioms beyond the literal and the general idioms classification. In particular, the following classes are labelled in the dataset: metaphor, simile, euphemism, parallelism, personification, oxymoron, paradox, hyperbole, irony and literal. We obtain an overall inter-annotator agreement (IAA) score, between two independent annotators, of 88.89%. Many past efforts have been limited in the corpus size and classes of samples but this dataset contains over 20,100 samples with almost 1,200 cases of idioms (with their meanings) from 10 classes (or senses). The corpus may also be extended by researchers to meet specific needs. The corpus has part of speech (PoS) tagging from the NLTK library. Classification experiments performed on the corpus to obtain a baseline and comparison among three common models, including the BERT model, give good results. We also make publicly available the corpus and the relevant codes for working with it for NLP tasks.
Motivation & Objective
- To address the lack of large-scale, multi-class annotated idioms corpora in NLP, especially beyond literal and general idiom classifications.
- To create a high-quality, publicly available corpus for training and evaluating models in token-based idiom detection.
- To improve performance in NLP tasks such as machine translation, word sense disambiguation, and information retrieval by enabling fine-grained idiom classification.
- To provide a baseline and comparative evaluation using traditional models (mNB, SVM) and state-of-the-art BERT.
- To support future extension of the corpus for domain-specific or low-resource NLP applications.
Proposed method
- The corpus was constructed from the British National Corpus (96.9%) and UK Web Pages (3.1%), manually annotated for 10 figurative language classes.
- Inter-annotator agreement was measured at 88.89% between two independent annotators, ensuring high label quality.
- Part-of-speech tagging was applied using the NLTK library to enrich the corpus with linguistic features.
- A stratified 85:15 train-validation split was used to address class imbalance in the dataset.
- Three models—multinomial Naive Bayes, linear SVM, and BERT—were trained and evaluated on the corpus for baseline comparison.
- Preprocessing included case normalization, HTML tag removal, and symbol/number filtering before model training.
Experimental results
Research questions
- RQ1Can a large-scale, multi-class idiom corpus be constructed with fine-grained classification beyond literal and general idioms?
- RQ2How does inter-annotator agreement perform on a diverse set of figurative language classes in a real-world NLP context?
- RQ3What is the performance of standard and state-of-the-art models in classifying idioms into 10 distinct figurative language classes?
- RQ4To what extent does class imbalance affect model performance, and can it be mitigated through data augmentation or model design?
- RQ5Can the PIE-English corpus serve as a reliable baseline for future research in token-based idiom detection and figurative language understanding?
Key findings
- The PIE-English corpus contains 20,174 samples and 1,197 distinct idiom cases across 10 figurative language classes, with metaphor being the most frequent (14,666 samples).
- The inter-annotator agreement score reached 88.89%, indicating strong label consistency and reliability in the annotation process.
- BERT achieved the highest performance with 93.4% accuracy and 94.8% F1 score, significantly outperforming mNB (74.7% accuracy) and SVM (76.6% accuracy).
- The model achieved near-perfect performance on simile (99.6% accuracy) and metaphor (97.5% accuracy), while hyperbole, oxymoron, and irony showed very low performance due to minimal training samples.
- Error analysis revealed that metaphor was often misclassified as literal or euphemism, and euphemism was frequently confused with metaphor, likely due to the dominance of metaphor in the training data.
- The corpus is publicly available with code, enabling future extension and adaptation for specialized NLP tasks, especially in low-resource or domain-specific settings.
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.