spell.addWord( uri as String, word as String ) as null
Add the word $word to the dictionary at $uri.
Parameters | |
---|---|
uri | The URI of the dictionary. |
word | The word to add. |
const spell = require("/MarkLogic/spell"); declareUpdate(); spell.addWord("/mySpell/spell.json", "WebDAV") => adds the word "WebDAV" to the specified dictionary