prefixword: Query words starting with a specific letter combination

Description Usage Arguments Value Examples

View source: R/word-service.R

Description

lists words with a specific prefix with a minimum length of 4 characters. Can be used for autocompletion functionality or similar.

Usage

1
2
prefixword(prefix, max_num = 10, min_freq = 2,
  corpus = "deu_news_2012_1M", force = FALSE)

Arguments

prefix

A string or vector of strings containing the prefixes, for which words should be queried. The prefixes must be at least 4 letters long.

max_num

integer. Maximal number of retrieved words. Should be between 1 and 1000.

min_freq

interger. Minimum frequency of retrieved words. Default is 2.

corpus

string. Name of the corpus to query. Default is the German deu_news_2012_1M

force

logical. Set to TRUE, if you want to query more than 1000 words

Value

A tibble with words starting with the prefix and their Frequency.

Examples

1
prefixword("fort")

tgraf0/wortschatzR documentation built on May 5, 2019, 3:51 a.m.