mideind / GreynirEngine

A fast, efficient natural language processing engine for Icelandic.
https://greynir.is
Other
60 stars 10 forks source link

Auto uppercase middle name #43

Closed sultur closed 3 years ago

sultur commented 3 years ago

Changes to middle name abbreviation functionality when auto_uppercasing.

Interprets words in MIDDLE_NAME_ABBREV as middle name abbreviations (adding them to the name) and words in NOT_NAME_ABBREVS as abbreviations only if they are followed by a period (".").

Fixes #42 (at least partially, 'sólar' and 'dag' are still capitalized along with "hæð', but 'sólar í dag í reykjavík' doesn't get interpreted as a single name).