Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
W5D1 - Swift Mini Assignment
Write a function that pluralizes words.
• By default, it just adds "s" to the end.
• But there are some exceptions ("goose" -> "geese")
• Create a dictionary of exceptions, so I can look up "hoof" and get back "hooves".
• The function should first check the dictionary, to see if it has an exception, then fall back to appending "s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment