sfollow

Purpose

Finds documents that contain sequences of arguments in specified order within one sentence.

The function is an alias of sentence(follow(1, term_1, term_2 …)).

Syntax

sfollow(term_1, term_2…​)

Arguments

The function accepts several arguments:

  • term_1, term_2 define the terms to search for and specify their order; the number of terms is unlimited.

The function also supports optional named parameters:

  • allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "yes" by default).

  • allow_space:=yes/no allows or prohibits spaces between arguments (set to "no" by default).

  • match:=range matches text range starting from the first found term and ending with the last found term.

  • match:=inverse matches text range starting from the first found term and ending with the last found term except for the specified arguments.

Returned Value

Documents matching the query.

Examples

sfollow(corporation, profit, allow_punct:=no) = follow(1, corporation, profit, allow_punct:=no) = sentence(follow(corporation, profit, allow_punct:=no)) matches "within a few years the corporation was earning profits", "The mobsters use dummy corporations to conceal the fact that they are making millions of dollars in profits from the sale of gasoline".

sfollow(value, amount, total, match:=inverse) matches Goodwill, which represents the excess of cost over the fair value of net assets acquired, amounted to $11,3 million at April 1, 2005, or approximately 4.8% of total assets or 5.9% of consolidated shareholders equity.