-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stem/lancaster stemmer #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
Just use double quotations because I configured codefactor to verify them 👍
Sorry, I didn't notice you have a problem when adding a new function. Apparently, the instructions outside describe are executed before the describes (the asynchronous mambo-jambo). Anyway, you can add an initialization function inside describe, like this:
same thing for Porter:
|
e2092db
to
8996c8a
Compare
Salam @kariminf, ready to review |
expect(morpho.stem("string")).to.eql("string"); // ditto 'string' | ||
expect(morpho.stem("meant")).to.eql("meant"); // ditto 'meant' | ||
expect(morpho.stem("cement")).to.eql("cem"); // ditto 'cem' | ||
//expect(morpho.stem("ness")).to.eql("nest"); // Change s to t 'nest' TODO: Make it change s to t 'nest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made that as a todo in #12
//expect(morpho.stem("ness")).to.eql("nest"); // Change s to t 'nest' TODO: Make it change s to t 'nest' | ||
}); | ||
|
||
/*it('Strip Prefixes', function(){ TODO: make it strip Prefixes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made that as a todo in #12
Salam @LBenzahia I merged it if that's OK |
I'll inspire the implementation from nltk Lancaster stemmer.
#34