Skip to content

koRpus

0.13-9Package record

Text Analysis with Emphasis on POS Tagging, Readability, and Lexical Diversity

3packages dependsuggested by 1
51.8Kdownloads / year
41.3%test coverage
13/13flavors OK

Overview

About

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).

Changes in 0.13-9

fixed

  • lex.div(): if text was too short, calculation of MTLDMA.char would fail with an error; these cases now return NAs guess.lang(): newer zip files with UDHR translations introduced empty lines that caused problems freq.analysis(): internal function kRp.freq.analysis.calc() was trying to use an object called frequency.pre when it didn't exist kRp_text(): validity checks don't fail any more after adding corp_freq feature was added readability(): 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 empty lex.div(): dropped all default measures from "char", it's rarely useful and should therefore be requested if really needed and not waste CPU otherwise lex.div()/readability()/query()/readTagged(): added match.arg() calls to improve verification of selected measures/indices/relations/tagger show() (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 use readTagged() with third party POS taggers like the udpipe package

From inst/NEWS.Rd in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.5 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.13-9
READMEYes · 529 wordsVignettesYes · 1 · dynamicNEWSYes · mentions 0.13-9Citation fileYes · software entry onlyWebsiteYes
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

51.8K
CRAN downloads in the past year
Rank #2,292 · ~142/day · ~4.3K/mo
Daily download trend is not available in this view yet.
3.1K30 days
7.5K90 days
51.8K1 year
Compare downloads with other packages →
Also on530 r2u4 autocran2K conda_forge173 c2d4u

Repository

47Stars
9Forks
1Open issues
0Open PRs
0Releases
514Commits
2Commit identities
License file reads as GPL-3.0 · 514 commits · Last activity 2026-02-03 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-07-25 · 462026-07-07 · 47
PracticesBeta

Checks run against github.com/undocumeantit/korpus on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing koRpus adds 2 packages (1 with compiled code, 5.8 MB of source tarballs). Heaviest: data.table 5.7 MB, sylly 66 KB.

Depends (2)
R >= 3.0.0sylly
Imports (3)
data.tablemethodsMatrix
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
8indirect
Depends 2 · Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Author, Maintainer since 0.04-27 (2012)
Contributor
Contributor · added in 3.0.1
Contributor
Contributor
Listed in earlier versions (1)
no longer listed · 0.05-3 to 0.10-2
Releases (25)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2014-01-22 · current release · diff ↗
  • 3.0.1
    record
    2013-04-07 · diff ↗ ·
    added 1 export
    is.taggedText
  • R
    R 3.0.0 released · 2013-04-03
Show 25 earlier eventsHide 25 earlier events
  • 2.15.2
    record
    2012-08-27 · diff ↗ ·
    added 2 exports
    freq.analysis, jumbleWords
  • R
    R 2.15.0 released · 2012-03-30
  • 2.15.0
    record
    2012-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-9
    record
    2026-02-03 · diff ↗
  • 0.13-8
    record
    2021-05-17 · diff ↗
  • 0.13-7
    record
    2021-05-14 · diff ↗
  • 0.13-6
    record
    2021-05-09 · diff ↗ ·
    added 1 export
    gutierrez
  • 0.13-5
    record
    2021-02-02 · diff ↗ ·
    removed 1 export
    kRp.text.analysis
  • 0.13-4
    record
    2020-12-11 · diff ↗
  • 0.13-3
    record
    2020-10-15 · diff ↗
  • 0.13-2
    record
    2020-09-24 · diff ↗
  • 0.13-1
    record
    2020-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-5
    record
    2018-10-28 · diff ↗ ·
    removed 10 exports
    describe<-, hyphenText<-, language<-, correct.hyph, describe, hyphen, hyphenText, language, manage.hyph.pat, read.hyph.pat
    added 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
    record
    2017-04-05 · diff ↗ ·
    removed 1 export
    WSTF
  • 0.10-1
    record
    2017-03-02 · diff ↗ ·
    removed 1 export
    show
    added 2 exports
    tokens, types
  • 0.06-5
    record
    2016-06-06 · diff ↗
  • 0.06-4
    record
    2016-03-08 · diff ↗ ·
    removed 1 export
    kRp.freq.analysis
    added 1 export
    set.lang.support
  • 0.05-6
    record
    2015-06-30 · diff ↗ ·
    removed 1 export
    summary
    added 1 export
    tuldava
  • 0.05-5
    record
    2014-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-4
    record
    2014-01-22 · diff ↗
  • 0.05-3
    record
    2013-12-21 · diff ↗ ·
    added 2 exports
    read.BAWL, read.tagged
  • 0.04-40
    record
    2013-04-08 · diff ↗
  • 0.04-36
    record
    2012-08-28 · diff ↗
  • 0.04-27
    record
    2012-03-08
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for koRpus version 0.13-9 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy