About this endpoint
What it does
Matches a source word against a list of candidate words using a phonetic algorithm. It returns the candidates that share a phonetic code with the source, along with that shared code.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| source | String | Yes | The reference word to match against. |
| algorithm | ENUM | No | Phonetic algorithm to use: metaphone (default) or soundex. |
| candidates | String Array | Yes | List of candidate words to compare against the source. |
Response
Returns a JSON object with a data array field. Each item in the array is an object containing a code string and a match string. The code value is the phonetic code shared by the source and the matching candidate.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object Array | No | Array of matched results. Each item contains:<br>- code: the phonetic code shared by source and this candidate<br>- match: the matching candidate word |