snear

Purpose

Finds sequences of arguments in unspecified order within one sentence.

The function snear() is synonymous to sentence(near()) and supports all parameters of the near() function.

Syntax

snear([distance, ] term_1, term_2…​)

Arguments

The first optional argument specifies maximum distance (in tokens) between the last and first position of the sequence.

Returned Value

Documents matching the query.

Examples

snear(3, company, produce) matches "the company also produces coking and thermal coal", "the deal will produce the fourth-most-valuable company in the country", but not "[…​] for the purpose of producing revenue. The Company considers historical performance […​]".