How can I find the singular in the plural when some letters change?
Following situation:
- The German word
Schließfachis a lockbox. - The plural is
Schließfächer.
As you see, the letter a has changed in ä. For this reason, the first word is not a substring of the second one anymore, they are "regex-technically" different.
Maybe I'm not in the right corner with my chosen tags below. Maybe Regex is not the right tool for me. I've seen naturaljs (natural.NounIflector()) provides this functionality out of the box for English words. Maybe there are also solutions for the German language in the same way?
What is the best approach, how can I find singular in the plural in German?