Text Analysis with Emphasis on POS Tagging, Readability, and Lexical Diversity
Overview
A set of tools to analyze texts. Includes, amongst others, functions for automatic language detection, hyphenation, several indices of lexical diversity (e.g., type token ratio, HD-D/vocd-D, MTLD) and readability (e.g., Flesch, SMOG, LIX, Dale-Chall). Basic import functions for language corpora are also provided, to enable frequency analyses (supports Celex and Leipzig Corpora Collection file formats) and measures like tf-idf. Note: For full functionality a local installation of TreeTagger is recommended. It is also recommended to not load this package directly, but by loading one of the available language support packages from the 'l10n' repository https://undocumeantit.github.io/repos/l10n/. 'koRpus' also includes a plugin for the R GUI and IDE RKWard, providing graphical dialogs for its basic features. The respective R package 'rkward' cannot be installed directly from a repository, as it is a part of RKWard. To make full use of this feature, please install RKWard from https://rkward.kde.org (plugins are detected automatically). Due to some restrictions on CRAN, the full package sources are only available from the project homepage. To ask for help, report bugs, request features, or discuss the development of the package, please subscribe to the koRpus-dev mailing list (https://korpusml.reaktanz.de).
fixed
lex.div(): if text was too short, calculation of MTLDMA.char would fail with an error; these cases now return NAsguess.lang(): newer zip files with UDHR translations introduced empty lines that caused problemsfreq.analysis(): internal functionkRp.freq.analysis.calc()was trying to use an object called frequency.pre when it didn't existkRp_text(): validity checks don't fail any more after adding corp_freq feature was addedreadability(): removed unused variant shortcut"Spache.de"dependencies: koRpus now requires sylly >= 0.1-7 because that fixed an issue with syllable count for texts where not a single word is shorter than three syllables: if the bug is triggered,SMOG()always returns -2. thanks to jana ludwig for reporting this! docs were fixed, mostly replacing "\itemize" with "\describe". thanks to gerry ryan for suggesting this!
changed
tokenize(): now fails with an error if text files/vectors are emptylex.div(): dropped all default measures from"char", it's rarely useful and should therefore be requested if really needed and not waste CPU otherwiselex.div()/readability()/query()/readTagged(): addedmatch.arg()calls to improve verification of selected measures/indices/relations/taggershow()(kRp.lang): omit"region"if none is available, but added location code including a link to open street map dependencies: are recommended by the authors of the Matrix package, set requirements to Matrix (>= 1.3-0)
added
readability(): added all index shortcuts for varaints to the documentation vignette: new section explaining how to usereadTagged()with third party POS taggers like the udpipe package
From inst/NEWS.Rd in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 85includes a package overview page
- Examples that run
- 35%27 run in a plain check · 50 never run
- Exported functions with examples
- 91%
- Documented parameters
- 77%
- Return-value docs
- 85%
- Help pages citing references
- 39%
Downloads
Repository
- PRs merged (all time)
- 40%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Checks run against github.com/undocumeantit/korpus on 2026-10-21.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing koRpus adds 2 packages (1 with compiled code, 5.8 MB of source tarballs). Heaviest: data.table 5.7 MB, sylly 66 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- 3.0.1
- RR 3.0.0 released · 2013-04-03
Show 25 earlier eventsHide 25 earlier events
- 2.15.2
- RR 2.15.0 released · 2012-03-30
- 2.15.02012-03-07 · diff ↗ ·
added 63 exports
ARI, bormuth, C.ld, coleman, coleman.liau, CTTR, dale.chall, danielson.bryan, dickes.steiwer, DRP, ELF, farr.jenkins.paterson, flesch, flesch.kincaid, FOG, FORCAST, fucks, get.kRp.env, guess.lang, harris.jacobson, HDD, hyphen, K.ld, kRp.cluster, kRp.filter.wclass, kRp.freq.analysis, kRp.POS.tags, kRp.text.analysis, kRp.text.paste, kRp.text.transform and 33 more - 0.13-92026-02-03 · diff ↗
- 0.13-82021-05-17 · diff ↗
- 0.13-72021-05-14 · diff ↗
- 0.13-6
- 0.13-5
- 0.13-42020-12-11 · diff ↗
- 0.13-32020-10-15 · diff ↗
- 0.13-22020-09-24 · diff ↗
- 0.13-12020-09-21 · diff ↗ ·
added 27 exports
corpusCorpFreq<-, corpusFreq<-, corpusHyphen<-, corpusLexDiv<-, corpusReadability<-, corpusStopwords<-, diffText<-, feature<-, hasFeature<-, corpusCorpFreq, corpusFreq, corpusHyphen, corpusLexDiv, corpusReadability, corpusStopwords, diffText, docTermMatrix, doc_id, feature, filterByClass, hasFeature, is.kRp.text, kRp_text, originalText, pasteText, readTagged, split_by_doc_id - 0.11-52018-10-28 · diff ↗ ·
removed 10 exports
describe<-, hyphenText<-, language<-, correct.hyph, describe, hyphen, hyphenText, language, manage.hyph.pat, read.hyph.patadded 14 exports
available.koRpus.lang, fixObject, install.koRpus.lang, kRp_TTR, kRp_analysis, kRp_corp_freq, kRp_lang, kRp_readability, kRp_tagged, kRp_txt_freq, kRp_txt_trans, summary, textTransform, tif_as_tokens_df - 0.10-2
- 0.10-1
- 0.06-52016-06-06 · diff ↗
- 0.06-4
- 0.05-6
- 0.05-52014-03-20 · diff ↗ ·
added 16 exports
describe<-, hyphenText<-, language<-, taggedText<-, cTest, clozeDelete, correct.hyph, correct.tag, describe, hyphenText, language, plot, query, show, summary, taggedText - 0.05-42014-01-22 · diff ↗
- 0.05-3
- 0.04-402013-04-08 · diff ↗
- 0.04-362012-08-28 · diff ↗
- 0.04-272012-03-08
- RR 2.14.0 released · 2011-10-31
Package metadata
- First published
- 2012-03-07
- Total releases
- 25 / 14 yrs
- License
- GPL (>= 3) OSI
- Additional repositories
- undocumeantit.github.io
- Minimum R
- ≥ 3.0.0
- Download size
- 463 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("koRpus")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.