-
Notifications
You must be signed in to change notification settings - Fork 52
Adds exceptions (indeclinable and exceptions with full forms) #377
Adds exceptions (indeclinable and exceptions with full forms) #377
Conversation
…t into 371-exceptions-full-forms
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.
CR: needs changes
Looks good, with the exception of a function that could be moved to helpers and be used for both Dutch and German. See my comment :)
packages/yoastseo/src/morphology/dutch/generateExceptionsFullForms.js
Outdated
Show resolved
Hide resolved
…avascript into 371-exceptions-full-forms
…avascript into 371-exceptions-full-forms
Restores a function that was accidentally deleted
…t into 371-exceptions-full-forms
…pt into 371-exceptions-full-forms
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.
CR: needs changes
I have added an extra spec to test that when the preceding lexical material is shorter than 2, null is returned.
I have also added some comments about naming and descriptions, as well as a line of code which I think needs to be removed.
Could you also make sure the the PR description and testing instructions are up to date when submitting an issue for code review? :)
packages/yoastseo/src/morphology/morphoHelpers/checkExceptionsWithFullForms.js
Outdated
Show resolved
Hide resolved
packages/yoastseo/spec/morphology/morphoHelpers/checkExceptionsWithFullFormsSpec.js
Outdated
Show resolved
Hide resolved
packages/yoastseo/src/morphology/morphoHelpers/checkExceptionsWithFullForms.js
Outdated
Show resolved
Hide resolved
packages/yoastseo/src/morphology/morphoHelpers/checkExceptionsWithFullForms.js
Outdated
Show resolved
Hide resolved
…avascript into 371-exceptions-full-forms
…javascript into 371-exceptions-full-forms
…WithFullForms.js Co-Authored-By: agnieszkaszuba <32479012+agnieszkaszuba@users.noreply.github.com>
…sWithFullFormsSpec.js Co-Authored-By: agnieszkaszuba <32479012+agnieszkaszuba@users.noreply.github.com>
…avascript into 371-exceptions-full-forms
…javascript into 371-exceptions-full-forms
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
The words can be taken from stemmingExceptionStemsWithFullForms list in the morphology data file. E.g. "zijden" from this list.
["zij", ["zij", "zijde", "zijden", "zijdes", "zitje", "zijtjes"]]
The expected result of the test: the stem (i.e. "zij")
Quality assurance
Fixes #371
Fixes https://yoast.atlassian.net/browse/LIN-103