Extend exception list for German nouns with umlaut in plural#21796
Merged
FAMarfuaty merged 8 commits intotrunkfrom Jan 17, 2025
Merged
Extend exception list for German nouns with umlaut in plural#21796FAMarfuaty merged 8 commits intotrunkfrom
FAMarfuaty merged 8 commits intotrunkfrom
Conversation
…lurals-with-umlaut
…ut and ends with a suffix that looks like a valid verb ending.
Pull Request Test Coverage Report for Build ebadf77212deffa09c4d43d5593470d8dca688a4Details
💛 - Coveralls |
FAMarfuaty
reviewed
Nov 18, 2024
…internal/determineStem.js Update code comment
Contributor
|
CR: Looks good to me, I only added some comments for the premium configuration PR, which will require adding some unit tests and test instructions to this PR 🙂 |
FAMarfuaty
reviewed
Nov 21, 2024
Co-authored-by: Aida Marfuaty <48715883+FAMarfuaty@users.noreply.github.com>
…lurals-with-umlaut
Contributor
|
Acceptance test: Works like a charm! ✨ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
randand pluralränder) were incorrectly stemmed because our exception list of words with multiple stems was not exhaustive. This PR (paired with the premium-configuration PR) fixes the problem above.Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
läden) are saved in a separate listumlautException. This list is checked before the stemming steps are executed so that these words don't get overstemmed.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Content analysis app
apps/content-analysisand run the app (runyarn installandyarn start)Localefield withdeWordpress
SCENARIO 1: plurals with umlaut and suffix -er
wörterorlochas the keyphrasewort,löcher.SCENARIO 2: plurals with umlaut and irregular case suffix -n
äpfelnormütternas the keyphraseapfel,mutter.äpfel,mütterinstead.SCENARIO 3: plurals with umlaut ending on -er
wörterorlochas the keyphrasewort,löcher.SCENARIO 4: plurals with umlaut ending on -e
ausflüchteormachtas the keyphraseausfluchtanywhere in the post andmächtein the introduction of the postausfluchtis recognized as a form of the keyphrasemächteis recognized as a form of the keyphraseSCENARIO 5: plurals with umlaut and no suffix
kästenorschwageras the keyphrasekastento the post andschwägerto the metadescriptionkastenis recognized as a form of the keyphraseschwägeris recognized as the form of the keyphraseShopify
Create a product and repeat the steps above from Step 2.
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes https://github.com/Yoast/lingo-other-tasks/issues/390