addDictionaryEntry: Adds an entry to a dictionary.

View source: R/addDictionaryEntry.R

addDictionaryEntryR Documentation

Adds an entry to a dictionary.

Description

This function creates adds a new entry to the given dictionary.

Usage

addDictionaryEntry(labbcat.url, manager.id, dictionary.id, key, entry)

Arguments

labbcat.url

URL to the LaBB-CAT instance

manager.id

The layer manager ID of the dictionary, as returned by getDictionaries

dictionary.id

The ID of the dictionary, as returned by getDictionaries

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

getDictionaries

getDictionaryEntries

Examples

## Not run: 
## Add the word "robert" to the CELEX wordform pronunciation dictionary
addDictionaryEntry(labbcat.url, "CELEX-EN", "Phonology (wordform)", "robert", "'rQ-b@t")

## End(Not run)


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