corpus-linguistics
Installation
SKILL.md
Corpus Linguistics with NLTK and spaCy
Overview
Corpus linguistics studies language through large, principled collections of authentic texts. This skill covers the complete analytical pipeline:
- Text preprocessing (tokenization, lemmatization, POS tagging, NER with spaCy)
- Frequency analysis (words, lemmas, bigrams, hapax legomena)
- Collocation analysis (MI, log-likelihood, t-score)
- KWIC (Key Word In Context) concordance
- Keyword analysis (log-likelihood comparison vs reference corpus)
- Distributional semantics (word2vec via gensim)
- N-gram language models
- Diachronic frequency trends