Skip to content

Update list of transition words for Arabic#22626

Merged
agnieszkaszuba merged 4 commits intorelease/26.2from
update-transition-words-for-arabic
Oct 8, 2025
Merged

Update list of transition words for Arabic#22626
agnieszkaszuba merged 4 commits intorelease/26.2from
update-transition-words-for-arabic

Conversation

@marinakoleva
Copy link
Copy Markdown
Contributor

@marinakoleva marinakoleva commented Oct 7, 2025

Context

Summary

This PR can be summarized in the following changelog entry:

  • Improves the transition words assessment for Arabic by expanding the list of recognized transition words. Props to Reem76-ar.
  • [shopify-seo] Improves the transition words assessment for Arabic by expanding the list of recognized transition words. Props to Reem76-ar.

Relevant technical choices:

  • Please look at the community patch PR for general information on the changes.
  • Research on the suggested changes has been documented here: Update Arabic Transition words.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Set your site language to Arabic (العربية)
  • Create a post with the following text:
    المناخ المناسب لزراعة الوردة الدمشقية تحتاج الوردة الدمشقية إلى مناخ معتدل وجاف، حيث تفضل درجات حرارة تتراوح بين 20-25 درجة مئوية. من المهم تجنب الرياح القوية والثلوج، وذلك لتفادي إصابة النباتات بالتلف. تزرع هذه الورود بشكل رئيسي في المناطق ذات التربة الخصبة والغنية بالمعادن. العناية بالوردة الدمشقية تتطلب الوردة الدمشقية عناية مستمرة من خلال الري المنتظم وتسميدها بالأسمدة العضوية لتعزيز نموها. يُنصح أيضًا بتقليمها في فترات معينة للحفاظ على شكلها الجميل وزيادة إنتاجيتها. من خلال تلك الممارسات، يمكن ضمان ازدهار الوردة الدمشقية وردود فعل إيجابية عن جاذبيتها.
  • Open the Readability analysis
  • Confirm that the Transition words assessment (كلمات انتقالية) highlights only the first sentence
  • Add the transition phrase على أرض الواقع to the last sentence in the text (make sure to enter a space between the previous word and the new phrase). This is one of the new phrases we've added to our list.
  • Confirm that the Transition words assessment (كلمات انتقالية) now highlights two sentences, the first and the last ones

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

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:

  • N/a

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities.
  • During testing, I had activated all plugins that Yoast SEO provides integrations for.
  • I have added unit tests to verify the code works as intended.
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.
  • I have checked that the base branch is correctly set.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label.
  • I have added my hours to the WBSO document.

Fixes #

Reem76-ar and others added 3 commits June 25, 2025 13:23
This pull request expands the Arabic transition word lists in transitionWords.js, without removing or replacing any existing entries.

Changes include:

Addition of new single-word transitions and their "wa-" prefixed forms (e.g. "فقط" → "وفقط").

Expansion of multi-word phrases commonly used in Modern Standard Arabic writing.

Inclusion of phrases like "على صعيد"، "على مستوى"، and their prefixed forms.

Purpose:
These additions enhance Yoast’s ability to assess paragraph flow and transition density in Arabic SEO writing. They reflect commonly used connectors in formal Arabic and align with editorial best practices.

All additions are appended at the end of the existing arrays to preserve compatibility.
@marinakoleva marinakoleva added the changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog label Oct 7, 2025
@marinakoleva marinakoleva changed the base branch from trunk to release/26.2 October 7, 2025 12:30
@marinakoleva marinakoleva added the Shopify This PR impacts Shopify. label Oct 7, 2025
@marinakoleva marinakoleva added this to the 26.2 milestone Oct 7, 2025
@agnieszkaszuba
Copy link
Copy Markdown
Contributor

CR & acceptance: 👍

@agnieszkaszuba agnieszkaszuba merged commit 3d58c26 into release/26.2 Oct 8, 2025
20 checks passed
@agnieszkaszuba agnieszkaszuba deleted the update-transition-words-for-arabic branch October 8, 2025 08:21
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 5d4e3b31acb3feb02b5e1acf01d4bc59f08eee96

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.001%) to 53.206%

Files with Coverage Reduction New Missed Lines %
packages/dashboard-frontend/src/constants.js 1 50.0%
Totals Coverage Status
Change from base Build 7d942685b5537a96664da8504db8a5d98a92b033: -0.001%
Covered Lines: 31846
Relevant Lines: 60133

💛 - Coveralls

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants