Learn R Programming

⚠️There's a newer version (0.13-8) of this package.Take me there.

koRpus

koRpus is an R package for text analysis. This includes, amongst others, a wrapper for the POS tagger TreeTagger, 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, Tuldava).

koRpus also includes a plugin for RKWard, a powerful GUI and IDE for R, providing graphical dialogs for its basic features. To make full use of this feature, please install RKWard (plugins are detected automatically).

More information on koRpus is available on the project homepage.

Installation

There are three easy ways of getting koRpus:

Stable releases via CRAN

The latest release that is considered stable for productive work can be found on the CRAN mirrors, which means you can install it from a running R session like this:

install.packages("koRpus")

The CRAN packages are usually a bit behind the recent state of the package, and only updated after a significant amount of changes or important bug fixes.

Development releases via the project repository

Inbetween stable CRAN releases there's usually several testing or development versions released on the project's own repository. These releases should also work without problems, but they are also intended to test new features or supposed bug fixes, and get feedback before the next release goes to CRAN.

Installation is fairly easy, too:

install.packages("koRpus", repo="http://R.reaktanz.de")

To automatically get updates, consider adding the repository to your R configuration. You might also want to subscribe to the package's RSS feed to get notified of new releases.

If you're running a Debian based operating system, you might be interested in the precompiled *.deb packages.

Contributing

To ask for help, report bugs, suggest feature improvements, or discuss the global development of the package, please either subscribe to the koRpus-dev mailing list, or use the issue tracker on GitHub.

Licence

Copyright 2012-2015 Meik Michalke meik.michalke@hhu.de

koRpus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

koRpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with koRpus. If not, see http://www.gnu.org/licenses/.

Copy Link

Version

Install

install.packages('koRpus')

Monthly Downloads

5,688

Version

0.06-5

License

GPL (>= 3)

Maintainer

Meik Michalke

Last Published

June 6th, 2016

Functions in koRpus (0.06-5)

coleman

Readability: Coleman's Formulas
C.ld

Lexical diversity: Herdan's C
bormuth

Readability: Bormuth's Mean Cloze and Grade Placement
coleman.liau

Readability: Coleman-Liau Index
dale.chall

Readability: Dale-Chall Readability Formula
CTTR

Lexical diversity: Carroll's corrected TTR (CTTR)
ARI

Readability: Automated Readability Index (ARI)
correct.tag

Methods to correct koRpus objects
cTest

Transform text into C-Test-like format
clozeDelete

Transform text into cloze test format
DRP

Readability: Degrees of Reading Power (DRP)
FORCAST

Readability: FORCAST Index
ELF

Readability: Farr's Easy Listening Formula (ELF)
dickes.steiwer

Readability: Dickes-Steiwer Handformel
flesch

Readability: Flesch Readability Ease
farr.jenkins.paterson

Readability: Farr-Jenkins-Paterson Index
danielson.bryan

Readability: Danielson-Bryan
freq.analysis

Analyze word frequencies
FOG

Readability: Gunning FOG Index
flesch.kincaid

Readability: Flesch-Kincaid Grade Level
HDD

Lexical diversity: HD-D (vocd-d)
get.kRp.env

Get koRpus session environment
K.ld

Lexical diversity: Yule's K
jumbleWords

Produce jumbled words
koRpus-package

The koRpus Package
harris.jacobson

Readability: Harris-Jacobson indices
hyph.XX

Hyphenation patterns
fucks

Readability: Fucks' Stilcharakteristik
hyphen

Automatic hyphenation
guess.lang

Guess language a text is written in
kRp.corp.freq,-class

S4 Class kRp.corp.freq
kRp.hyph.pat,-class

S4 Class kRp.hyph.pat
kRp.lang,-class

S4 Class kRp.lang
kRp.tagged,-class

S4 Class kRp.tagged
kRp.analysis,-class

S4 Class kRp.analysis
kRp.POS.tags

Get elaborated word tag definitions
kRp.filter.wclass

Remove word classes
kRp.cluster

Work in (early) progress. Probably don't even look at it. Consider it pure magic that is not to be tempered with.
kRp.readability,-class

S4 Class kRp.readability
kRp.hyphen,-class

S4 Class kRp.hyphen
kRp.text.paste

Paste koRpus objects
kRp.txt.trans,-class

S4 Class kRp.txt.trans
linsear.write

Readability: Linsear Write Index
kRp.txt.freq,-class

S4 Class kRp.txt.freq
taggedText

Getter/setter methods for koRpus objects
kRp.TTR,-class

S4 Class kRp.TTR
kRp.text.analysis

Analyze texts using TreeTagger and word frequencies
kRp.text.transform

Letter case transformation
lex.div

Analyze lexical diversity
lex.div.num

Calculate lexical diversity
MATTR

Lexical diversity: Moving-Average Type-Token Ratio (MATTR)
manage.hyph.pat

Handling hyphenation pattern objects
query

A method to get information out of koRpus objects
R.ld

Lexical diversity: Guiraud's R
nWS

Readability: Neue Wiener Sachtextformeln
LIX

Readability: Bj\"ornsson's L\"asbarhetsindex (LIX)
plot

Plot method for objects of class kRp.tagged
MSTTR

Lexical diversity: Mean Segmental Type-Token Ratio (MSTTR)
read.hyph.pat

Reading patgen-compatible hyphenation pattern files
MTLD

Lexical diversity: Measure of Textual Lexical Diversity (MTLD)
readability.num

Calculate readability
show

Show methods for koRpus objects
read.tagged

Import already tagged texts
RIX

Readability: Anderson's Readability Index (RIX)
SMOG

Readability: Simple Measure of Gobbledygook (SMOG)
wheeler.smith

Readability: Wheeler-Smith Score
U.ld

Lexical diversity: Uber Index (U)
S.ld

Lexical diversity: Summer's S
segment.optimizer

A function to optimize MSTTR segment sizes
tokenize

A simple tokenizer
traenkle.bailer

Readability: Traenkle-Bailer Formeln
maas

Lexical diversity: Maas' indices
TRI

Readability: Kuntzsch's Text-Redundanz-Index
treetag

A function to call TreeTagger
set.kRp.env

A function to set information on your koRpus environmenton
set.lang.support

Add support for new languages
tuldava

Readability: Tuldava's Text Difficulty Formula
TTR

Lexical diversity: Type-Token Ratio
read.corp.custom

Import custom corpus data
read.corp.LCC

Import LCC data
textFeatures

Extract text features for authorship analysis
read.BAWL

Import BAWL-R data
summary,kRp.lang-method

Summary methods for koRpus objects
strain

Readability: Strain Index
spache

Readability: Spache Formula
read.corp.celex

Import Celex data