wamania / php-stemmer Goto Github PK
View Code? Open in Web Editor NEWNative PHP Stemmer
License: MIT License
Native PHP Stemmer
License: MIT License
Hello,
this isn't an issue, but a request. There is a stemming algorithm for greek language.
https://snowballstem.org/algorithms/greek/stemmer.html
Can it be added here?
I noticed the work on the Finnish stemmer hasn't moved along in a long time. I need one, so I started working on it. Just so you know; I'll send in a pull request when I'm done.
I'm about to fork this stemmer for my language but before I could start I just tried a word using the English stemmer.
I gave it the adjective unethical but to my surprise it returned uneth whereas it should have spitted ethic as
Can you please look into it.
stem() should be the only public method, but the following ones are also exposed:
public function step3()
public function step4()
public function step5()
public function finish()
Do you plan to add Polish steemer algo as well?
Double post due to a system glitch.
Hi there! I'm in the process of upgrading to PHP 8.2. Getting the following warnings:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4653
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4664
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5731
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5742
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13398
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13398
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13409
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13409
I checked the latest release of voku/portable-utf8 and it seems like this has been fixed on their end. Could it be possible that you could fix this by updating the dependency in your composer.json to the version that fixes this?
Line 14 in 8ea32b6
Thanks a lot for your help!
Hello @wamania,
would it be possible to tag a 2.1.1 including the fix from @SharkyKZ ? We would need it to fix the issue joomla/joomla-cms#31564 reported to joomla ?
Thanks for you work
Harald
We discovered joomla/joomla-cms#27329 that the code in the utf8.php file is not compatible with php7.4 as it produces several deprecated notices like this
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated
Is this something that is resolved in v2? Is v2 backwards compatible?
The 1.3 version (for PHP 5) is compatible with 7x versions?
Hi, sorry for the very basic issue, but I couldn't make it work.
I used composer (latest version of your stemmer) in a PHP8 environment.
Composer downloaded a 21 Mb vendor directory with autoload.php inside:
I uploaded all the vendor directory with its contents and put outside a PHP file with:
require 'vendor/autoload.php';
Then I tried to execute the basic example you provided in the front page usage section but I got a class not found error.
Is there something else I should add to the autoload? Should I directly require classes? How?
Thanks and happy new year to everybody reading.
For example if I pass the name "Lucy" it converts to "luci", can you tell me if this is intended to work like this.
Any chance to include the Lithuanian stemmer? https://snowballstem.org/algorithms/lithuanian/stemmer.html
Hello, thank you for your work with the stemmer. Joomla has gotten a bug report that voku/portable-utf8 has a problem on PHP 8.2. (joomla/joomla-cms#39512) It turns out that this is only used from your php-stemmer AND that voku already fixed this in their latest 6.0.x versions. From my perspective 6.0.12 should work perfectly fine with php-stemmer, since none of the code you are using has been changed in the 6.0 release. Would it be possible for you to update your composer.json to require voku/portable-utf8 to "^5.4|^6.0"? That would help us with Joomla 5.0.
The big question would be, if you could also do another release for 2.x with that change as well. Then we could fix this issue in Joomla 4.x as well. Thank you!
Hello,
Packagist is not showing any releases for this project. I can only use dev-master while checking out the project from packagist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.