toantecedent

Purpose

Converts a word which has little meaning of its own to a word which provides the interpretation for it.

Syntax

toantecedent($argument)

Arguments

The function accepts one required argument (a named group).

Returned Value

String value.

Examples

Dataset

XPDL-rule

Result

This is Mr Jones. He is talking.

rule: he

{

query: {he}:m

result: Match = $m

attribute: Attribute= toantecedent($m)

}

Mr Jones

He is talking about the conference which ended on Friday.

rule: which

{

query: {which}:m

result: Match = $m

attribute: Attribute= toantecedent($m)

}

conference

This is a cat. It is called Fred.

rule: it

{

query: {it}:m

result: Match = $m

attribute: Attribute= toantecedent($m)

}

cat