dot-update_env_lookup: Update the Environment Lookup

.update_env_lookupR Documentation

Update the Environment Lookup

Description

When we look up a word and that word isn't in the existing lookup, we add it to the lookup.

Usage

.update_env_lookup(word, morphemes, use_lookup)

Arguments

word

The word that has been processed.

morphemes

The processed morphemes to save in the cache.

use_lookup

Logical; whether to use a cached lookup table (if available) or always process the word from scratch. If the word is not available in the lookup, processing (and likely a call to the Wiktionary API) will still occur. You might want to set this value to FALSE if you've made recent edits to Wiktionary or otherwise want to see if something has changed recently.

Value

The morphemes, with any post-processing that's needed on all morphemes (right now, removing duplicate hyphens).


jonthegeek/wikimorphemes documentation built on Sept. 1, 2022, 10:32 p.m.