position
Arguments
The function position() has no required arguments. When called without arguments, optional named parameters should be specified, for example:
The function accepts several arguments:
-
The first optional parameter number is used to specify the maximum position (in tokens) at which the argument can occur in text. By default, the function finds arguments at the first position in text. Punctuation marks are not taken into consideration when calculating position number.
-
the terms to search for.
The function also accepts the following optional named parameters:
-
scope:=line/sentence/paragraph/text/table_cell/table_row/table_name/table_row_name/table_column_name/heading/page specifies a position within a line/sentence/paragraph/text/table_cell/table_row/table_name/table_row_name/table_column_name/heading/page. The default value is text.
-
mode:=forward/backward specifies a position from the beginning/end of the scope; the default value is forward.
-
min_pos/max_pos specifies the required minimal and maximal positions of the argument. The maximal position can be specified, using the first argument of the function, i.e. position(1, meeting) = position(meeting, max_pos:=1). If you need to count positions from the end of sentences, then you should specify negative values for min_pos and max_pos parameters.
-
min_snt/max_snt specifies the minimal/maximal sentence number. If both min_snt and min_pos parameters are specified, positions will be counted from the beginning of the indicated sentence. The same will occur if both max_snt and max_pos parameters are indicated. If the sentence number is not specified, then the position is calculated from the beginning of the scope parameter.