Skip to main content
Depending on the language, words can come in different declensions:
  • Based on number: singular or plural
  • Gender: masculine, feminine, neutral
  • Case: nominative, accusative, genitive
When you enable ignorePlurals and set the appropriate languages with queryLanguages, these variations are considered to be equivalent during search. For example, with ignorePlurals enabled and queryLanguages set to English, the queries “shirt” and “shirts” return the same results. The ignorePlurals parameter relies on language-specific dictionaries. You can customize which words to consider as declined forms using the Algolia dashboard. Each Algolia application uses one declension dictionary per language. This means that you can’t create different customizations for the same language for different indices in one Algolia application. If you want to create certain equivalencies only when searching certain indices, consider using synonyms instead. For more information, see How to set the query language.

Inspect plurals and other declined forms

You can use the dashboard to search for declined forms and their alternatives for a particular language:
  1. Go to the Algolia dashboard and select your Algolia application.
  2. On the left sidebar, select Search.
  3. Open the Dictionaries page.
  4. Select the language and dictionary that you want to inspect.
  5. Search for a specific word by typing it into the input. If there are Algolia alternatives or if you created custom alternatives, these appear below the input.
Searching for words or their declined forms is exact. A word and its alternatives only appear once you’ve fully and correctly entered it: the input box doesn’t use prefix searching or typo tolerance.

Add missing alternatives

You may search for a word and find that it doesn’t have any alternatives associated with it. This can happen when your use case includes English vocabulary in the context of another language or if you have use-case specific vocabulary. For example, a brand-specific word like “iPhone” isn’t included in Algolia’s dictionary, but you may want searches for “iPhone” and “iPhones” to return the same results. In this case, you can add a custom group of alternatives so that “iPhones” is recognized as the plural of “iPhone”.

Using the dashboard

  1. Go to the Dictionaries page in the Algolia dashboard.
  2. Select the language and dictionary you want to customize.
  3. Search for a specific word by typing it into the input. If there are Algolia alternatives or if you created custom alternatives, these appear below the input.
  4. If no entry exists, click Add (+) to add the word to the dictionary.
  5. In the input, enter each word that should be considered an alternative to the word and click Save.
  6. Click Review and Save.

Customize alternatives

You may find that a particular group of declined form doesn’t include an alternative you would expect or contains a word that shouldn’t be considered equivalent for your use case. In this case, you should customize the existing group of alternatives from the dashboard:
  1. Go to the Dictionaries page in the Algolia dashboard.
  2. Select the language and dictionary you want to customize.
  3. Search for a specific word by typing it into the input. If there are Algolia alternatives or if you created custom alternatives, these appear below the input.
  4. If an entry exists, you can either add new words or remove existing words from the list of alternatives by selecting Edit.
  5. Add new alternatives by typing it in the input or remove alternatives by clicking Delete next to it. Click Save.
  6. Click Review and Save.
Editing an out-of-the-box group of alternatives results in the creation of a custom group. The out-of-the-box group of alternatives also remains. When performing a search, if both an out-of-the-box group and custom group exist for a word, only the custom group is used to determine equivalences.
You can’t delete out-of-the-box groups. To turn off all alternatives for a certain word, create a custom group where it is the only word. You can do this by editing a an out-of-the-box group and removing all alternatives.

Upload and download customizations

You can upload your own list of alternatives in CSV or JSON format using the Actions menu.

CSV format

CSV
language, words, objectID, type
de,"hund,hunde,hunds,hunden,hundes,hundchen,hundchens",1,custom
The list of words must be a comma-separated list without spaces and surrounded by quotes.

JSON format

JSON
[
  {
    "language": "de",
    "words": [
      "hund",
      "hunde",
      "hunds",
      "hunden",
      "hundes",
      "hundchen",
      "hundchens"
    ],
    "objectID": 1,
    "type": "custom"
  }
]
Using the Actions menu, you can also download all custom alternatives from a dictionary, either in CSV or JSON format.
I