cTest-methods: Transform text into C-Test-like format

Description Usage Arguments Value

Description

If you feed a tagged text object to this function, its text will be transformed into a format used for C-Tests:

Usage

1
2
3
4
5
cTest(obj, ...)

## S4 method for signature 'kRp.tagged'
cTest(obj, every = 2, min.length = 3,
  intact = c(start = 1, end = 1), replace.by = "_")

Arguments

obj

An object of class "kRp.tagged"

...

Additional arguments to the method (as described in this document).

every

Integer numeric, setting the frequency of words to be manipulated. By default, every other word is being transformed.

min.length

Integer numeric, sets the minimum length of words to be considered (in letters).

intact

Named vector with the elements start and end. both must be integer values and define, which sentences are to be left untouched, counted in sentences from beginning and end of the text. The default is to ignore the first and last sentence.

replace.by

Character, will be used as the replacement for the removed word halves.

Value

And object of class kRp.tagged, with an additional list cTest in its desc slot, listing the words which were changed.


koRpus documentation built on May 30, 2017, 12:47 a.m.