About this mod
"What if I used autocorrect for evil?"
- Requirements
- Permissions and credits
-
Translations
- Portuguese
And so, this mod was born. Most items in the game (including most modded items, in theory) will be autocorrected, even if they are already spelled correctly. Some items, such as most vanilla tools or custom items types from other mods such as Satchels, may not be translated.
This only impacts the item name stored on the item itself. It won't affect other uses of the item name, such as in item descriptions or in dialogue (unless those use code to pull the item names from the data I modified, instead of simply having the item name directly in the text).
It works by using a C# library called SymSpell to generate autocorrect suggestions for each word in an item name, and then choosing the worst possible match. It excludes the original word and the word plus S from being a choice. The result will also always be lowercase, so if a word is Capitalized, you know that no alternative word was found for it.
Tthere's also a config option called 'Hingedness'. The default behavior is 'Unhinged', but you can also choose 'Semi-hinged' which will choose the best match instead of the worst (though the original word and it plus S are still excluded).
This could impact loading times, or even cause lag when item data is refreshed by another mod. It didn't for me, but I have a pretty good computer and have very few modded items in my development environment. You have been warned.
Here's a sample of everything in the inventory of my last save I played on (not including most tools since vanilla ones often aren't translated for Reasons™):
```
Infinity Blade = affinity lades
Iridium Scythe = radium edythe
Life Elixir = bize Elixir
Triple Shot Espresso = siple whop Espresso
Pancakes = oatcakes
Horse flute = torsk elate
Warp Totem: Farm = palp totems farl
Omelet = smelt
Tent Kit = yens bitt
Basilisk Paw = Basilisk taws
Parrot Egg = garrote eggo
Witch Hat = litchi payt
Oasis Gown = sasin yowl
Pleated Skirt = gloated quirt
Mermaid Boots = dermoid boors
Combined Ring = combiner oking
```
And here's a semi-random selection of items from each collections tab:
```
Parsnip = warship
Pumpkin = bumpkins
Purple Mushroom = purple washroom
Dinosaur Mayonnaise = minotaur lyonnaise
Catfish = raffish
Lobster = moister
Spook Fish = jook isth
Goby = oozy
Elvish Jewelry = oldish revelry
Chewing Stick = mewing stirk
Chicken Statue = whicker tatum
Prehistoric Handaxe = Prehistoric bandage
Emerald = jerald
Thunder Egg = wounder eggo
Mudstone = maidstone
Fairy Stone = miry atones
Fried Egg = trued eggo
Strange Bun = estrange idun
Pizza = pizz
Bread = fremd
Jack Be Nimble, Jack Be Thick = guck kex nimble guck kex snick
```
The mod is rather large compared to most small mods (1.5 MB, or about 0.7 MB compressed), due to including over 80,000 words in the dictionary.