---
title: "SW-AG: Local Context Matching for English Lexical Substitution"
description: "The paper describes two unsupervised, knowledge-light systems for the SemEval-2007 English lexical… 7 references, cited by 3 papers here."
authors: ["George Dahl", "Anne-Marie Frassica", "Richard Wicentowski"]
year: 2007
venue: "Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007)"
source: "https://aclanthology.org/S07-1066/"
licence: "CC BY-NC-SA 3.0 (ACL Anthology, before 2016)"
licence_url: "https://creativecommons.org/licenses/by-nc-sa/3.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/dahl-2007-sw-ag-local-context-matching/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dahl-2007-sw-ag-local-context-matching/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2007](https://md.research.elamur.ai/free/en/papers/2007/page/2/) / SW-AG: Local Context Matching for English Lexical Substitution

# SW-AG: Local Context Matching for English Lexical Substitution

**Authors:** [George Dahl](https://md.research.elamur.ai/free/en/authors/george-e-dahl/), Anne-Marie Frassica and [Richard Wicentowski](https://md.research.elamur.ai/free/en/authors/richard-wicentowski/) · **Year:** 2007 · **Venue:** [Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007)](https://md.research.elamur.ai/free/en/venues/international-workshop-on-semantic-evaluations/) ([International Workshop on Semantic Evaluations 2007](https://md.research.elamur.ai/free/en/venues/international-workshop-on-semantic-evaluations/2007/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

**Links:** [Publisher's page](https://aclanthology.org/S07-1066/) · [PDF](https://aclanthology.org/S07-1066.pdf) · [OpenAlex](https://openalex.org/W2113421182)

**Citations:** 9 citations (OpenAlex, 2026-10-14) · 3 in our library, of the 149,439 papers whose bibliographies we read

## Summary
The paper describes two unsupervised, knowledge-light systems for the SemEval-2007 English lexical substitution task. Each system proposes ten suitable replacements for a marked word in a sentence. The authors use a "direct" approach and avoid choosing a word sense first. They build a substitution lexicon from Roget's New Millennium Thesaurus (RT), keeping only entries that match the target exactly and removing rare candidates using Web 1T 5-gram unigram counts. The first system, SWAG1, ranks candidates by how often the trigrams around the target, with the candidate swapped in, occur in Web 1T. Each trigram's contribution is normalized. The second system, SWAG2, adds a cosine nearest-neighbour model built on British National Corpus sentences. It uses thesaurus "senses" only to filter candidates and picks the best model per part of speech. SWAG2 scored higher on the out-of-ten metric, with precision 37.80 against 35.53. The results suggest that substitution can work well without explicit sense disambiguation.

## Key points
- On trial data, the oracle maximum recall was 53% with a WordNet-synset lexicon and 85% with RT. Dropping the least frequent third of candidates lowered this ceiling to 75% but clearly improved precision.
- LCM draws on as many as three trigrams from the test sentence that include the target word. It discards those without another content word, using the NLTK-Lite tagger, and matches the rest against more than 967 million unique Web 1T trigrams after lemmatization.
- Filtering by sense raised nearest-neighbour accuracy from .41 to .44. Keeping only the top-ranked sense for nouns raised LCM noun accuracy from .51 to .57, counting only instances with a mode.
- The combined system was assembled per part of speech. Filtered LCM was used for nouns and adjectives, filtered nearest-neighbour for adverbs, and the combined voter for verbs.
- OOT results were P 35.53 / R 32.83 / Mode P 47.41 for SWAG1 and P 37.80 / R 34.66 / Mode P 50.18 for SWAG2. Both systems did better on instances where annotators agreed on a mode.

## Interesting ideas
- Before tuning a ranker, measure the oracle ceiling of the candidate generator, meaning the share of gold answers that are reachable at all, because that limit caps every later stage.
- Test a candidate by swapping it into the actual local word context and checking whether the result is attested in a large corpus. Normalize per context so that one very frequent trigram does not dominate the decision.
- Discard context windows that contain only function words besides the target, since they carry almost no evidence and only add noise.
- Use sense information as a filter on directly generated candidates rather than as a required first decision, which avoids problems when the sense inventory is too fine or too coarse.
- Prune rare, obscure alternatives by corpus frequency, accepting a lower recall ceiling in exchange for choices humans would actually make.

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (learn): Evaluations could report, for each stage, how much of the gold remains reachable from the previous stage's candidates, for example correct heads among the parser's options. Failures would then be split into generation misses and ranking misses.
- **I2** (world): When choosing among WordNet synonyms or ontology labels for an entity, an explainable swap-and-check score against n-gram counts could justify the choice with concrete attested contexts.
- **I3** (frames): When scoring VerbNet class or role candidates from nearby words, the evidence could be limited to windows containing a content word, so that weak cues do not outweigh informative ones.
- **I4** (frames): VerbNet or FrameNet classes could prune frame candidates proposed directly from the UD tree, without forcing one sense choice up front.
- **I5** (back): When generating text from the meaning graph, the system could prefer frequent lexicalizations of a concept so that paraphrases read naturally.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

## Institutions

- [Swarthmore College](https://md.research.elamur.ai/free/en/universities/swarthmore-college/) — University, Swarthmore, United States · 3 works · 615 citations

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 16,667 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 16,194 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 16,039 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 15,891 works

🧭 Topics (1): [English](https://md.research.elamur.ai/free/en/topics/english/) · 2,263 works

## Cite

Cite as: George Dahl, Anne-Marie Frassica and Richard Wicentowski. 2007. SW-AG: Local Context Matching for English Lexical Substitution. Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{dahl2007sw,
  title = {{SW-AG: Local Context Matching for English Lexical Substitution}},
  author = {George Dahl, Anne-Marie Frassica and Richard Wicentowski},
  booktitle = {Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007)},
  year = {2007},
  doi = {10.3115/1621474.1621540},
  url = {https://doi.org/10.3115/1621474.1621540}
}
```

- [← previous Measuring Syntactic Difference in British English](https://md.research.elamur.ai/free/en/papers/sanders-2007-measuring-syntactic-difference-british-english/)
- [next → Automatic induction of shallow-transfer rules for open-source machine translation](https://md.research.elamur.ai/free/en/papers/martinez-2007-automatic-induction-shallow-transfer-rules/)
- [↑ back to papers of 2007](https://md.research.elamur.ai/free/en/papers/2007/page/2/)

## References

7 references, 2 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. R.H. Baayen, R. Piepenbrock, and L. Gulikers. 1996. CELEX2. LDC96L14, Linguistic Data Consortium, Philadelphia. [find](https://scholar.google.com/scholar?q=R%2EH%2E+Baayen%2C+R%2E+Piepenbrock%2C+and+L%2E+Gulikers%2E+1996%2E+CELEX2%2E+LDC96L14%2C+Linguistic+Data+Consortium%2C+Philadelphia%2E)
2. T. Brants and A. Franz. 2006. Web 1T 5-gram, ver. 1. LDC2006T13, Linguistic Data Consortium, Philadelphia. [find](https://scholar.google.com/scholar?q=T%2E+Brants+and+A%2E+Franz%2E+2006%2E+Web+1T+5%2Dgram%2C+ver%2E+1%2E+LDC2006T13%2C+Linguistic+Data+Consortium%2C+Philadelphia%2E)
3. I. Dagan, O. Glickman, A. Gliozzo, E. Marmorshtein, and C. Strapparava. 2006. Direct word sense matching for lexical substitution. In Proceedings of the 44th Annual Meeting of the Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=I%2E+Dagan%2C+O%2E+Glickman%2C+A%2E+Gliozzo%2C+E%2E+Marmorshtein%2C+and+C%2E+Strapparava%2E+2006%2E+Direct+word+sense+matching+for+lexical+substitution%2E+In+Proceedings+of+the+44th+Annual+Meeting+of+the+Association+for+Comp)
4. D. Lin and P. Pantel. 2001. Induction of semantic classes from natural language text. In Proceedings of the 7th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. [find](https://scholar.google.com/scholar?q=D%2E+Lin+and+P%2E+Pantel%2E+2001%2E+Induction+of+semantic+classes+from+natural+language+text%2E+In+Proceedings+of+the+7th+ACM+SIGKDD+International+Conference+on+Knowledge+Discovery+and+Data+Mining%2E)
5. D. Lin. 1998. [Automatic retrieval and clustering of similar words](https://md.research.elamur.ai/free/en/papers/lin-1998-automatic-retrieval-clustering-similar-words/). In Proceedings of the 36th Annual Meeting of the Association for Computational Linguistics.
6. E. Loper and S. Bird. 2002. NLTK: The Natural Language Toolkit. In Proceedings of the ACL-02 Workshop on Effective Tools and Methodologies for Teaching Natural Language Processing and Computational Linguistics. [↗](https://doi.org/10.48550/arxiv.cs/0205028)
7. D. McCarthy and R. Navigli. 2007. [SemEval-2007 Task 10: English lexical substitution task](https://md.research.elamur.ai/free/en/papers/mccarthy-2007-semeval-2007-task-10-english/). In Proceedings of SemEval-2007.

*Updated 1 November 2026*
