agrignard / WhatsNext

0 stars 1 forks source link

Problem with some aliases (capital case and accent?) #17

Closed agrignard closed 9 months ago

agrignard commented 9 months ago
  1. I might be worng but this aliases seems not to work
  {
    "name": "Epicerie Moderne",
    "country": "France",
    "city": "Lyon",
    "aliases": [
      "L'epicerie Moderne","L’Épicerie Moderne"
    ]
  },

I keep having this name L'epicerie Moderneinstead of Epicerie Moderne in screpaex.csv

In the same style

 {
    "name": "Bourse du Travail",
    "country": "France",
    "city": "Lyon",
    "aliases": [
      "Bourse Du Travail"
    ]
  }
{
    "name": "LDLC Arena",
    "country": "France",
    "city": "Lyon",
    "aliases": [
      "Ldlc Arena"
    ]
  }
 "name": "Le Périscope",
    "aliases": [
      "périscope", "Le Periscope"
    ],
 {
    "name": "Salle 3000",
    "country": "France",
    "city": "Lyon",
    "aliases": [
      "Amphithéâtre - Salle 3000", "Cite Internationale (Amphitheatre/Salle 3000/Auditorium Lumiere)"
    ]
  },
tnguyenh commented 9 months ago

It works perfectly fine here. Where did you put the json objects ?

There is no need for accents or uppercase/lower case, so you don't need aliases.

For example, LDLC arena should read:

{ "name": "LDLC Arena", "country": "France", "city": "Lyon", }

tnguyenh commented 9 months ago

ok fixed, a regex was applied after alias conversion, wrong order.