Replaces the term with the header of the corresponding entry in Synonym dictionary.
Syntax
tosynonym(argument)
Arguments
Requires a single argument of a string value.
Returned Value
The header of the corresponding entry in Synonym dictionary.
Examples
Dataset
XPDL rule
Result
air conditioning
rule: r1
{
query: {"air conditioning"}:1
result: Match = tosynonym($1)
}
air conditioner
Requires the enabled Synonyms dictionary.
The function tosynonym() does not work with pdl-queries. If a synonym dictionary entry contains a term written using a "query:" expression, the function will not replace it with the entry header.