wildcard_at_start
- Last Updated: May 13, 2026
- 1 minute read
- Semaphore
- Documentation
The wildcard_at_start attribute places the specified value at the start of the data field of the generated rule. This attribute is useful for automatically adding wildcard characters when needed. For example, when matching in URLs, Classification Server treats the URL as one string so to be able to match part of that string a wildcard is needed. This is often used in conjunction with wildcard_at_end.
Applies to
Values
Any value, including wildcards supported by Classification Server as defined here.
Example
For a model that contains the concept ‘Drug Trafficking’ with Synonyms ‘Drug Barons’, ‘Dealer’, ‘LSD’, ‘THC’ these terms would get assigned the following termtypes:
| Concept | labeltype | wordtype |
|---|---|---|
| Drug Trafficking | prefLabel | MULTIWORD |
| Drug Barons | altLabel | MULTIWORD |
| Dealer | altLabel | NOUN |
| LSD | altLabel | ACRONYM |
| THC | altLabel | ACRONYM |
Using the following template rule:
<phraselist field="body" wildcard_at_start="*" case="0" stem="1" weight="40" foreach="1" labeltypes="prefLabel" wordtypes="MULTIWORD"/>
would generate the output:
<phrase field="body" case="0" stem="1" weight="40" foreach="1" data="*Drug Trafficking"/>