phraselist
- Last Updated: May 13, 2026
- 1 minute read
- Semaphore
- Documentation
The phraselist rule will create a phrase rule for any labels that have the True, True, and True defined on the rule.
Attributes
The phraselist rule allows all attributes that are defined on the phrase 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:
<phraselist field="body" case="0" stem="1" weight="40" foreach="1" labeltypes="prefLabel|altLabel" wordtypes="MULTIWORD"/>
would generate the output:
<phrase field="body" case="0" stem="1" weight="40" foreach="1" data="Drug Barons"/>
<phrase field="body" case="0" stem="1" weight="40" foreach="1" data="Drug Trafficking"/>