load_synonyms#

dscat.synonyms.load_synonyms(root)[source]#

Load synonym pairs from the built-in groups and any project file.

Parameters:

root (pathlib.Path) – Repository root; a synonyms.json there is appended to the built-ins.

Returns:

Directed (term, expansion) pairs, where each group member expands to every other member.

Return type:

list of tuple