12.13.1. Configuring morphology

To create a morphology list, use the following command:

Admin@UGOS# create libraries morphology

Specify the following parameters:

Parameter

Description

name

Morphology list name.

description

List description.

threat-lvl

Threat level:

  • very-low

  • low

  • medium

  • high

  • very-high

threshold

Morphology category weight, which needs to be exceeded for the rule to be triggered.

url

If the morphological list is updatable, specify the address from which you want to load updates.

words

Words and phrases to add to the list.

  • word: words and phrases. When adding a word to the morphological dictionary, you can precede it with the "!" modifier, such as "!bassterd". In that case, the slang word will not be converted to word forms, which can dramatically reduce the probability of erroneous blocking.

  • weight: word or phrase weight. If not set, the default value of 100 is used.

To add words and phrases, use the following command:

Admin@UGOS# create libraries morphology ... words new word "word or phrase" weight <weight>

To update morphology list data, use the following command:

Admin@UGOS# set libraries morphology <morphology-list-name>

Specify the parameters for which the values will be updated. The parameters are listed in the table above. To add new words or phrases to a list, use the following command:

Admin@UGOS# set libraries morphology <morphology-list-name> words new word "word or phrase" weight <weight>

To replace a word in a list, use the following command:

Admin@UGOS# set libraries morphology <morphology-list-name> words ( word "old word or phrase" weight <weight> ) word "new word or phrase" weight <weight>

To delete an entire morphology list or words from it, use the following commands:

Admin@UGOS# delete libraries morphology <morphology-list-name> 

Admin@UGOS# delete libraries morphology <morphology-list-name> words ( word "word or phrase" weight <weight> )

To display information about all existing morphology lists, use the following command:

Admin@UGOS# show libraries morphology

To display information about an individual morphology list, append the list name. To display a morphology list, use the following command:

Admin@UGOS# show libraries morphology <morphology-list-name> words