sentence
Arguments
This function has no required arguments. When called without arguments, the function matches all sentences. The function accepts several arguments:
-
The first optional argument number sets the number of sentences. The default value is 1.
-
The second and the following arguments are the terms to be searched for; the number of them is unlimited; the order of them is not important.
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.
-
match:=first/last/shortest/longest matches the first/last/shortest/longest sentence.
-
whole:=yes matches sentences made up only by the arguments listed in the query.