hyponym

Purpose

Matches documents that contain argument term(s) or its hyponyms up to the specified level.

The function is equivalent to the related() function.

Syntax

hyponym ([level], term,…​)

Arguments

The first optional argument level is an integer specifying the distance between the function’s argument and the function’s output in the semantic network (WordNet).

If the level is not provided, the entire hyponym tree starting from the argument is considered.

Returned Value

Documents matching the query.

Examples

hyponym(1, institution) matches words "company", "academy", "education institution", that are direct hyponyms of institution;

hyponym(2, institution) matches words "company", "academy" and also words "college", "university", "foundation";

hyponym(3, institution) matches words "company", "college", "university" and also words "school", "elementary school", "church", "bank";

hyponym(institution) is a union of hyponym(1, institution), hyponym(2, institution), etc. and matches words "company", "college", "university", "elementary school", "church", "bank", etc.