HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
168 stars 19 forks source link

The last word of a text is not recognized in some situations #114

Open HenryWales opened 1 year ago

HenryWales commented 1 year ago

If the text finishes on a word without further punctuation, the last word of the text is ignored in the parsing. It doesn't count in the statistics of the text, can't be added to terms or edited and so on.

Adding a point at the end of the text fix it. So that is a minor problem. Maybe it makes sense for some languages but for european languages it's strange.

Tested in LWT 2.8.1

HugoFara commented 1 year ago

Hi! This is a long term known issue, but it's quite minor as you can simply any punctuation after the word. As I never met a situation where it was blocking for users, it's not a priority for now but I'm always open to pull requests :smile: