vanderlee / php-sentence

Simple text sentence splitting and counting. Supports atleast english, german and dutch, possibly more. If you find it works well enough for your language, please let me know!
MIT License
78 stars 23 forks source link

float number logic has some bug #17

Closed hrvoj3e closed 2 years ago

hrvoj3e commented 2 years ago

Using text

Last year was 2021. i and now is 2022. :). 2022-1 is 2021
$sentenceWorker = new Sentence();
$sentenceSplit = $sentenceWorker->split($text);
$textFromSentences = implode(' ', $sentenceSplit);

I get

Last year was 2021. i and now is 3a824154b16ed7dab899bf000b80eeee. :). 3a824154b16ed7dab899bf000b80eeee-1 is 2021

Why is that?

vanderlee commented 2 years ago

should be fixed in repository. Package version update coming soon