synonyms.json

A synonym dictionary per language.

synonyms

One dictionary per language, such as de or en.

groupsarray of arrays of strings

Words that mean the same, each way round, such as ["sofa", "couch"].

one_wayarray of objects

A word that also finds others, but not the other way round: läufer finds teppich.

2 fields
fromstringRequired

The word a shopper types.

tostring or array of stringsRequired

The word or words it also finds.

neverarray of arrays of strings

Words that look alike but must never be merged, such as ["sessel", "sofa"]. The panel warns when a merchant tries.

$schema

The JSON Schema an editor checks this file against; kept as written.

Example

tests/fixtures/home/synonyms.json (trimmed)
{
  "$schema": "../../../contracts/schema/synonyms.json",
  "synonyms": {
    "de": {
      "groups": [["sofa", "couch"], ["zweisitzer", "2-sitzer"]],
      "one_way": [
        { "from": "ecksofa", "to": "sofa" },
        { "from": "wohnlandschaft", "to": "sofa" }
      ],
      "never": [["sessel", "sofa"], ["matratze", "topper"]]
    },
    "en": {
      "groups": [["sofa", "couch"], ["sectional", "corner sofa"]],
      "one_way": [
        { "from": "loveseat", "to": "sofa" },
        { "from": "runner", "to": "rug" }
      ],
      "never": [["dresser", "chest of drawers"]]
    }
  }
}

Guide: Synonyms

On this page