cocaNeighbors: Find lexical neighbors.

Description Usage Arguments Details Value Author(s)

Description

Find lexical neighbors.

Usage

1

Arguments

word

A character string indicating the word defining the neighborhood.

data

A data.frame containing CoCA lexical statistics. See cocaReadFreq.

Details

Find all neighbors for word in data (assumes coca data.frame). Neighbors are defined as words differing from word by a single letter substitution, deletion or insertion.

Value

Returns a data.frame containing 1 row for each neighbor found in data, specifying: index (ID), wordform (w1), lemma (L1), simple wordclass (WC), CLAWS7 tag (c1), raw CoCA frequency (coca).

Author(s)

Dave Braze davebraze@gmail.com


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.