Compare and sort text with accents correctly
Prompt that explains why text with accents does not match or sorts wrongly and sets clear rules. Paste it into an AI tool of your choice, which then sets the text comparison rules.
- Topic
- Apps & prototypes
- Type
- Prompt
- Level
- Intermediate
- Time
- about 15 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
Example: "Zoë" ≠ "Zoë" Cause: one uses ë as one character, the other e plus accent Rules: - store: normalise to composed form (NFC) - compare: case- and accent-insensitive for search only - sort: German order for German users Tests: ß/ss, é/e, ø, O'Brien
Fill in
What you type stays in this browser window. We store and send nothing.
- duplicates despite identical names
- search finds Müller but not Mueller
- sort order looks random
- login fails for some names
- unique check lets duplicates through
- customer names
- product titles
- city names
- user names
- tags and keywords
- relational database
- search index
- JavaScript frontend
- Python backend
- spreadsheet export
Your prompt
You have edited the prompt. Changes in the fields above no longer overwrite it.
This is an instruction for an AI, not the result itself.
Where this prompt works
These AI tools are a good fit for this prompt:
How to use it
- Fill in the fields or tap a suggestion. Leave out names, addresses and other personal data.
- Copy the finished prompt into an AI tool of your choice.
- Use invented names such as "Zoë Müller-Ødegaard" for the test cases; they cover several special cases at once.
Why does this work?
Text that looks equal can be stored differently. Normalising in one agreed place and testing with real edge cases stops duplicates and failed searches.
Tips
- Changing normalisation on existing data can merge or split records; plan it on a copy first.