How to prevent chatGPT from using the Eszett (German double s: ß)?

I have a description from a file, e.g.:

  • Bruder New Holland T7.315 mit Frontlader

I pass then this description to the api for optimization with client.chat.completions.create(). It then returns e.g.

  • Bruder New Holland T7.315 - Vielseitiger Frontlader-Traktor für endlosen Spielspaß

In the prompt i tell it among others that it must avoid the eszet (ß), but it uses it anyway. Is there a best practice for preventing the models use anything specific?

My prompt:

  • Verbessere den folgenden Produkttitel für Plattformen wie Amazon oder Galaxus.\n- Gestalte ihn ansprechend und überzeugend für Kunden, unter Beibehaltung des Marken- und Produktnamens.\n- Maximal 80 Zeichen. Keine Anführungszeichen um den Titel.\n- Der Produkttitel soll für die Persona {persona} geschrieben werden.\n- Eszet: Ersetze alle ß zwingend mit ss.",

Ist postprocessing not an option here? Would sound much cheaper to me.

1 Like

Thank you so much for your reply @LinqLover!

The moment you replied i just came up with this as well. Somehow i was stuck on the other idea… And of course it works as you might guess! :smiley:

Thanks again for the reply!!

2 Likes