I made a gender swapping algorithm for my own use only. You put in any text and it outputs the exact same thing with all the genders reversed. Man to woman, he to she, Prince to princess, witch to wizard. Then got a book deal to create a series of gender swapped illustrated books ‘Gender Swapped Fairy Tales’ and ‘Gender swapped Greek myths’ It seems like a simple enough task but gets complicated in weird ways. For ex…
It turned out to require rather more semantic parsing than I expected. Maybe its worth revisiting with the advent of large language models.