globalbioticinteractions / nomer

maps identifiers and names to other identifiers and names
GNU General Public License v3.0
19 stars 3 forks source link

add methods to interpret names like "Trifolium.pratense" -> "Trifolium pratense" #33

Closed jhpoelen closed 3 years ago

jhpoelen commented 3 years ago

Currently, "globi-correct" matcher produces:

$ echo -e "\tTrifolium_pratense" | nomer append globi-correct Trifolium_pratense SAME_AS Trifolium pratense

However, with

$ echo -e "\tTrifolium.pratense" | nomer append globi-correct Trifolium.pratense SAME_AS Trifolium

is produced.

suggest to modify the functionality to make

$ echo -e "\tTrifolium.pratense" | nomer append globi-correct Trifolium.pratense SAME_AS Trifolium preterse

related to https://github.com/globalbioticinteractions/globalbioticinteractions/issues/630 .fyi @zedomel .

jhpoelen commented 3 years ago

For next release, the following will be available:

$ echo -e "\tTrifolium.pratense" | nomer append globi-correct
    Trifolium.pratense  SAME_AS     Trifolium pratense