While using the python package, I ran into a bug with a wrong word being returned. The nominative case of Þór in "Ragnar Þór Valgeirsson" is wrong when using a NounPhrase.
How to reproduce
greynir_bug.py
from reynir import NounPhrase as Nl
nafn = Nl("Ragnar Þór Valgeirsson")
print(f"{nafn:nf}")
Thanks for this! A commit fixing this is upcoming - it involves an addition to the config/Prefs.conf file. The fix will then be included in the next release.
Thank you for the great project!
While using the python package, I ran into a bug with a wrong word being returned. The nominative case of Þór in "Ragnar Þór Valgeirsson" is wrong when using a NounPhrase.
How to reproduce
greynir_bug.py
Results after executing ten times
Ragnar Þórr Valgeirsson Ragnar Þórr Valgeirsson Ragnar Þór Valgeirsson Ragnar Þórr Valgeirsson Ragnar Þórr Valgeirsson Ragnar Þór Valgeirsson Ragnar Þórr Valgeirsson Ragnar Þór Valgeirsson Ragnar Þór Valgeirsson Ragnar Þórr Valgeirsson