Many times a developer will write code that works but never considers alternatives. The code here was written as ReplaceDiacritics
then used ChatGPT to write ReplaceDiacritics1
from the first method to exclude using a StringBuilder
than used ChatGPT
to rewrite ReplaceDiacritics1
using Span
in ReplaceDiacritics2
.
No matter if alternatives are done with A.I. or developer rewrites its never a bad idea to look at alternatives.