YoastSEO.js icon indicating copy to clipboard operation
YoastSEO.js copied to clipboard

Improve the matching with different apostrophe's.

Open terw-dan opened this issue 8 years ago • 7 comments

In French, another apostrophe is used than in English.

We should improve the matching so these are all matched.

example -> the storm (English) = l’orage (French / le + orage, we must replace the vowel of the article by this apostrophe), which would therefore cause the keyword "orage" to not be recognized

This replaces: https://github.com/Yoast/wordpress-seo/issues/6076

How can we reproduce this behavior?

Use a &rsquo instead of ' and see the words don't match.

Technical info

  • Platform: Standalone
  • Yoast SEO version: 4.0.2

terw-dan avatar Dec 29 '16 09:12 terw-dan

@IreneStr Can you check if there are other characters that we should also match? So we can fix the matching of all characters all at once?

terw-dan avatar Dec 29 '16 09:12 terw-dan

The following apostrophes are used before/after suffixes, to replace vowels etc.:

  • ' = \u0027
  • ’ = \u2019
  • ʼ = \u02bc

We should not enable this for all languages, because these characters can also be used as a character within words. In Hawaiian, for example ' is used to indicate a glottal stop. We wouldn't want to detect the focus keyword 'oli' (they) in a word like hauʻoli (joy).

We should differentiate between apostrophes used before keywords (l'orage, French), and apostrophes used after keywords (John's, English).

Before keywords:

  • fr
  • sq
  • oci
  • it
  • ca
  • lij
  • gl
  • lg/lug? (Luganda)
  • ga

After keywords:

  • en
  • af
  • da
  • nl
  • eo
  • nn
  • nb
  • pt
  • sv
  • de
  • cy
  • et
  • fi
  • pl
  • tr

IreneStr avatar Jan 02 '17 15:01 IreneStr

Please inform the customer of conversation # 200749 when this conversation has been closed.

Pcosta88 avatar Jun 07 '17 18:06 Pcosta88

related: https://github.com/Yoast/wordpress-seo/issues/6180

Pcosta88 avatar Jun 09 '17 15:06 Pcosta88

Please inform the customer of conversation # 197281 when this conversation has been closed.

Pcosta88 avatar Jun 09 '17 16:06 Pcosta88

Please inform the customer of conversation # 201398 when this conversation has been closed.

Pcosta88 avatar Jun 09 '17 17:06 Pcosta88

user says,

I think the best thing to do would be to identify keywords inside text, titles and descriptions WITHOUT taking apostrophes into consideration. In other words, the Yoast SEO plugin ignores apostrophes and just concentrates on the words themselves.

Pcosta88 avatar Jun 09 '17 19:06 Pcosta88