cancel
Showing results for 
Search instead for 
Did you mean: 

How to include some edge-cases to REDUCE

Vlad_Ghitulescu
Participant
0 Kudos
162

Hey,


back in May 2023 I had a question re changing the upper / lower case to city-names. 

With the invaluable help of @Sandra_Rossi  I used REDUCE to solve my problem:

CleanShot 2024-01-27 at 09.43.22.pngCleanShot 2024-01-27 at 09.43.00.png

I got however a couple of edge-cases like

  • Frankfurt am Main
  • Müllheim an der Ruhr
  • Aicha vorm Wald
  • Lohheide gemfr. Bezirk
  • Blidnheim b Dillingen a d Donau
  • Stadtbek Gem Seedorf
  • Wörth, Gem Gars a Inn

where I could recognize a new rule:

Specific words (like "am", "an der", "vorm", "gemfr." or the shortcuts "b" / "a" / "d" (as a word, delimited by spaces)) are exceptions to the rules defined above in the REDUCE and should remain in lower-case.

I believe that the specific words that remain in lower case should be specified in a list that should be updated each time new words like this are discovered.

I also discovered some street-names that need a special treatment as well

  • An der B 80
  • Am Alten Schacht
  • Unter den Eichen

Here I would think that a second list would be helpful with such exceptions that are so rare that an exact description of the desired output could be the most helpful.

Do you have an idea how could I accomplish all of this?

Thanks!


Regards,
Vlad

Accepted Solutions (0)

Answers (0)