ispras / lingvodoc-react

Apache License 2.0
7 stars 11 forks source link

Allow comments in affix meaning #1111

Closed vmonakhov closed 3 months ago

vmonakhov commented 3 months ago

Affix meaning can have comment in brackets. So a simple meaning may loook like 2PST but meaning with comment can look like 2PST (ед. ч.) Other cases: CONV (CVB.LIM); PL (глаг., отриц.); INE (притяж. склонение) and so on. Such meanings must be considered as full ones and take part in morphology analysis as is.

vmonakhov commented 3 months ago

Now affix meaning can have whitespace-separated comment in brackets. Whitespace is not mandatory. Affix meaning has such wildcard: '[.\dA-Z]+ *\([.,:;\d\w ]+\)' or '[.\dA-Z]+'. Duplicated spaces are reduced.