Skip to content
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

Use simple product name from backend in mobile matching context on Amazon.fr #239

Open
MaartenLMEM opened this issue Sep 15, 2021 · 1 comment

Comments

@MaartenLMEM
Copy link

Following dis-moi/backend#448 in Backend

Main usecases of notices that will be filled in and that may be used here:

#2019 (books)
#323 (board games)
#442 (lingerie)
#526 (clothes)
#761 (matress)
#762 (pillow)
#960 (cardboard box)
etc.

@MaartenLMEM MaartenLMEM changed the title Use one field product name from backend in mobile matching context on Amazon.fr Use simple product name from backend in mobile matching context on Amazon.fr Sep 15, 2021
@MaartenLMEM
Copy link
Author

MaartenLMEM commented Sep 23, 2021

Basic model for a product on Amazon.fr : 1st proposal based on our contribution practices by @zhinu

If product name = Serviette hygiénique

User enters in BO field : Serviette hygiénique or Serviette-hygiénique or Serviette_hygiénique or Serviette.hygiénique
(we assume here contributor won't write Serviette hygienique without accent.)

As a result the matching context machine could translate it this way :

Regex language = .*([^A-Za-zÀ-ÖØ-öø-ž]serviettes?([^A-Za-zÀ-ÖØ-öø-ž].*[^A-Za-zÀ-ÖØ-öø-ž]|[^A-Za-zÀ-ÖØ-öø-ž])hygi(e|é|%C3%A9)niques?([^A-Za-zÀ-ÖØ-öø-ž]|$))

Xpath language = //span[@id='productTitle']/text()[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÂÄÇÉÈÊËÎÏÙÛÜ' , 'abcdefghijklmnopqrstuvwxyzàâäçéèêëîïùûü'), 'serviette') contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÂÄÇÉÈÊËÎÏÙÛÜ' , 'abcdefghijklmnopqrstuvwxyzàâäçéèêëîïùûü'), 'hygiénique')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant