addLayerDictionaryEntry: Adds an entry to a layer dictionary.

View source: R/addLayerDictionaryEntry.R

addLayerDictionaryEntryR Documentation

Adds an entry to a layer dictionary.

Description

This function adds a new entry to the dictionary that manages a given layer, and updates all affected tokens in the corpus. Words can have multiple entries.

Usage

addLayerDictionaryEntry(labbcat.url, layer.id, key, entry)

Arguments

labbcat.url

URL to the LaBB-CAT instance

layer.id

The ID of the layer with a dictionary configured to manage it.

key

The key (word) in the dictionary to add an entry for.

entry

The value (definition) for the given key.

Details

You must have edit privileges in LaBB-CAT in order to be able to use this function.

Value

NULL if the entry was added, or a list of error messages if not.

See Also

generateLayer

Examples

## Not run: 
## Add a pronunciation for the word "robert" to the phonemes layer dictionary
addLayerDictionaryEntry(labbcat.url, "phonemes", "robert", "'rQ-b@t")

## End(Not run)


nzilbb.labbcat documentation built on July 26, 2023, 6:08 p.m.