Skip to content

Get the dictionaries

GET
/v1/apps/{appId}/dictionaries
curl --request GET \
--url https://api.shoofai.com/v1/apps/demo-store/dictionaries \
--header 'x-shoof-api-key: <x-shoof-api-key>'

Returns the app’s stop words, plurals and compounds dictionaries.

appId
required
string

The app’s id, shown in the dashboard (for example ali-sport-goods). demo-store is the public demo app.

Example

demo-store

The stop words, plurals and compounds dictionaries.

Media typeapplication/json
object
dictionaries

Per language code. See Dictionaries.

object
stopWords
object
key
additional properties
object
add
Array<string>
<= 1000 items
remove
Array<string>
<= 1000 items
disableStandard
boolean
plurals
object
key
additional properties
Array<Array<string>>
<= 5000 items
compounds
object
key
additional properties
Array<object>
<= 5000 items
object
word
required
string
decomposition
required
Array<string>
>= 2 items <= 10 items

Example

{
"dictionaries": {
"stopWords": {
"fr": {
"add": [
"svp"
],
"remove": [],
"disableStandard": false
}
},
"plurals": {
"ar": [
[
"كتاب",
"كتب"
]
]
},
"compounds": {
"de": [
{
"word": "kopfschmerztabletten",
"decomposition": [
"kopfschmerz",
"tabletten"
]
}
]
}
}
}