sentencelist
- Last Updated: May 29, 2026
- 1 minute read
- Semaphore
- Documentation
The sentencelist rule will create a sentence rule for any labels that have the wordtypes, behaviourtypes, and labeltypes defined on the rule.
Attributes
The sentencelist rule allows all attributes that are defined on the sentence rule to be added.
In addition it can have the following template specific attributes:
Example 1
For a model that contains the concept ‘Drug Trafficking’ with alternative labels ‘Drug Barons’, ‘Dealer’, ‘LSD’, ‘THC’ these labels would get assigned the following labeltypes and wordtypes:
| label | labeltypes | wordtypes |
|---|---|---|
| Drug Trafficking | prefLabel | MULTIWORD |
| Drug Barons | alternative label, altLabel | MULTIWORD |
| Dealer | alternative label, altLabel | NOUN |
| LSD | alternative label, altLabel | ACRONYM |
| THC | alternative label, altLabel | ACRONYM |
Using the following template rule:
<sentencelist field="body" case="0" stem="1" weight="40" foreach="1" labeltypes="prefLabel|altLabel" wordtypes="MULTIWORD"/>
would generate the output:
<sentence field="body" case="0" stem="1" weight="40" foreach="1" data="Drug Barons"/>
<sentence field="body" case="0" stem="1" weight="40" foreach="1" data="Drug Trafficking"/>