-
Notifications
You must be signed in to change notification settings - Fork 902
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
Extend exception list for German nouns with umlaut in plural #21796
Open
hannaw93
wants to merge
8
commits into
trunk
Choose a base branch
from
390-fix-plurals-with-umlaut
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+70
−16
Conversation
This file contains 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
hannaw93
added
changelog: enhancement
Needs to be included in the 'Enhancements' category in the changelog
Shopify
This PR impacts Shopify.
labels
Nov 5, 2024
hannaw93
changed the title
add tests for each group of vowel changing to umlaut nouns
Extend exception list for German nouns with umlaut in plural
Nov 5, 2024
…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
packages/yoastseo/src/languageProcessing/languages/de/helpers/internal/determineStem.js
Outdated
Show resolved
Hide resolved
…internal/determineStem.js Update code comment
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
packages/yoastseo/src/languageProcessing/languages/de/helpers/internal/determineStem.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Aida Marfuaty <[email protected]>
…lurals-with-umlaut
FAMarfuaty
approved these changes
Jan 16, 2025
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.
Looks good! ✨
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog: enhancement
Needs to be included in the 'Enhancements' category in the changelog
Shopify
This PR impacts Shopify.
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
rand
and 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-analysis
and run the app (runyarn install
andyarn start
)Locale
field withde
Wordpress
SCENARIO 1: plurals with umlaut and suffix -er
wörter
orloch
as the keyphrasewort
,löcher
.SCENARIO 2: plurals with umlaut and irregular case suffix -n
äpfeln
ormüttern
as the keyphraseapfel
,mutter
.äpfel
,mütter
instead.SCENARIO 3: plurals with umlaut ending on -er
wörter
orloch
as the keyphrasewort
,löcher
.SCENARIO 4: plurals with umlaut ending on -e
ausflüchte
ormacht
as the keyphraseausflucht
anywhere in the post andmächte
in the introduction of the postausflucht
is recognized as a form of the keyphrasemächte
is recognized as a form of the keyphraseSCENARIO 5: plurals with umlaut and no suffix
kästen
orschwager
as the keyphrasekasten
to the post andschwäger
to the metadescriptionkasten
is recognized as a form of the keyphraseschwäger
is 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 theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/lingo-other-tasks/issues/390