val entry = DictionaryEntry.Stopword( objectID = ObjectID("MyObjectID"), language = Language.English, word = "upper")client.replaceDictionaryEntries(Dictionary.Stopwords, listOf(entry))// or using extension function:client.replaceStopwordEntries(listOf(entry))
val entry = StopwordEntry( objectID = "MyObjectID", language = "en", word = "down", state = "enabled")client.execute { replace dictionary Stopwords entries Seq(entry)}
let entry = StopwordsDictionary.Entry(objectID: "down", language: .english, word: "down", state: .enabled)client.replaceDictionaryEntries(in: StopwordsDictionary.self, with: [entry]) { result in if case .success(let response) = result { print("Response: \(response)") }}
val entry = DictionaryEntry.Plural( objectID = ObjectID("MyObjectID"), language = Language.French, words = listOf("cheval", "chevaux"))client.replaceDictionaryEntries(Dictionary.Plurals, listOf(entry))// or using extension function:client.replacePluralEntries(listOf(entry))
val entry = PluralEntry( objectID = "MyObjectID", language = "fr", words = Seq("cheval", "chevaux"))client.execute { replace dictionary Plurals entries Seq(entry)}
let entry = PluralsDictionary.Entry(objectID: "chevaux", language: .french, words: ["cheval", "chevaux"])client.replaceDictionaryEntries(in: PluralsDictionary.self, with: [entry]) { result in if case .success(let response) = result { print("Response: \(response)") }}
val entry = DictionaryEntry.Compound( objectID = ObjectID("MyObjectID"), language = Language.Dutch, word = "kopfschmerztablette", decomposition = listOf("kopf", "schmerz", "tablette"))client.replaceDictionaryEntries(Dictionary.Compounds, listOf(entry))// or using extension function:client.replaceCompoundEntries(listOf(entry))
val entry = CompoundEntry( objectID = "MyObjectID", language = "de", word = "kopfschmerztablette", decomposition = Seq("kopf", "schmerz", "tablette"))client.execute { replace dictionary Compounds entries Seq(entry)}
let entry = CompoundsDictionary.Entry(objectID: "kopfschmerztablette", language: .german, word: "kopfschmerztablette", decomposition: ["kopf", "schmerz", "tablette"])client.replaceDictionaryEntries(in: CompoundsDictionary.self, with: [entry]) { result in if case .success(let response) = result { print("Response: \(response)") }}
List of decompositions of a word for the compounds dictionary.
If empty, word is considered a compound atom.
Otherwise, the compounds that word is decomposed into.
This section shows the JSON response returned by the API.
Each API client wraps this response in language-specific objects, so the structure may vary.
To view the response, use the getLogs method.
Don’t rely on the order of properties—JSON objects don’t preserve key order.