Misspelled - Chat Spellchecker
Misspelled is a chat spell-checker addon. Misspelled watches the chat messages you type, highlighting any misspellings and offering suggestions for any misspelled words it finds.
I've included in the US & UK English dictionaries some Warcraft specific proper nouns, including the zone names, and all dungeon and raid boss names. Your friends and guild members are also automatically added, and shouldn't get flagged as misspelled words..Misspelled utilizes the HunSpell style, affix (prefix/suffix) compressed dictionaries. The same ones used in Chrome, Firefox, and OpenOffice. Misspelled provides suggestions based on words that phonetically sound like the misspelled word, along with providing suggestions based on common mistakes of spelling. While Misspelled can detect nearly the same number of individually correctly spelled words as OpenOffice, it's suggestion engine, is "somewhat" less complicated, than the HunSpell implementation.
Misspelled includes dictionaries for US-English, UK-English, French, German, Italian, Russian (experimental), and Spanish. The appropriate dictionary, for your game client locale, will auto-load, or you can manually choose what dictionary to use from Misspelled's Interface/Addons options page.
I'm attempting to localize the menus and configuration page. You can help by visiting: http://www.wowace.com/addons/misspelled/localization
Misspelled works with WIM (Wow Instant Messenger), and is compatible with: Prat, Skinner, and Chatter.
Usage note: Spell Checking is performed as you complete each word you've typed. The last word in the chat box, isn't spell checked until you type some form of word terminator, either a period, space, or some other word separating punctuation. Spell checking is very fast; but isn't performed needlessly, while a word is being typed.
Misspelled is compatible with Wow, Wow Classic/Wrath/Cata If you are having problems with Misspelled, please try updating or disabling all other chat addons you may be running.
Official Distribution Points
Curse: http://www.curse.com/addons/wow/misspelled
WowInterface: http://www.wowinterface.com/downloads/info13493-Misspelled.html
Donations accepted to: https://www.paypal.com
Change Log:
- v1.11.3 - Updated for The War Within. Addon options are working and some proper nouns for TWW for the US and GB dicrionaries were added.
- v1.9.5 - Fixed packaging issue to publish Wrath version. Added the word: Oathstone to the US and GB dictionary word lists. Fixed a few escape sequence errors Luacheck found.
- v1.9.0 - TOC update for Wow 10.0 Dragonflight. Added some proper nouns for Dragonflight for US and GB dictionaries.
- v1.8.8 - Added proper nouns for Shadowlands Eternity's End
- v1.8.7 - TOC update for Wow 9.2, Classic and BCC
- v1.8.6 - TOC updated for compatibility with Wow 9.1.5, Classic and BCC
- v1.7.4 - Fixes for Wow Classic
- v1.7.2-r76 - Added updates suggested by tammymg to only allow a max of 12 color code tags in the chat edit box, and fixed a local var typo.
- v1.7.1-r75 - TOC bump for patch 8.1. Fixed suggestion popup error, and dictionary editor PlaySound errors.
- v1.5.18-r66 - TOC Bump for patch 5.2. Teh vs the, hard coded rule added.
- v1.5.15-r63 - Added some Pandaria proper nouns to the enUS English dictionary.
- v1.5.11-r59 - Added missing Cataclysm instance boss names, to the enUS English dictionary.
- v1.5.10-r58 - Version bump to update embedded libs.
- v1.5.08-r56 - Added some Cataclysm proper nouns to the enUS and enGB dictionaries. (New zone names, dungeons, bosses, Worgen, etc...)
- v1.5.07-r55 - Fix needed for compatibility with the PTR v4 and Cataclysm game client.
- v1.5.06-r54 - Added support for UI localization. Now I just need some help with translations. "Fixed" compatibility with the addon Gryphonheart Items. (GHI) Gryphonheart Items begins it's item color tags with a (|C) capitol C (vs the standard |c). I added that possibility to the chat text parsing routines.
- v1.5.04-r52 - Added itIT Italian dictionary, including Chromium delta words.
- v1.5.03-r51 - Fix an error preventing the enGB dictionary from loading.
- v1.5.02-r50 - Added ruRU - Russian dictionary (experimental), and support for PTR patch 3.3.5's IM chat changes, that introduce multiple chat edit boxes. This version is compatible with both release and PTR versions of the game client.
- v1.4.02-r48 - Corrected a typo in the .toc file. The addon Title entry was mistakenly mistyped. "Mispelled" was changed to "Misspelled". Changing the title, may re-enable the addon, where it has been explicitly disabled.
- v1.4.01-r47 - Added a UK English (enGB) dictionary. Those wanting to use this dictionary, should uncheck the auto-dictionary selection option, and select the enGB option, then reload. Like the other Misspelled dictionaries, this one was derived from the enGB dictionary included in Openoffice & Chromium. Included in this dictionary are the Wow proper nouns I included in the US English dictionary, including zone names, raid boss names, and a few other Warcraft specific words. Due to the similarity to US English, the suggestion engine uses the same phonetic rules for both dictionaries.
- r46 - TOC updated for patch 3.3
- r45 - Added UI to show, and allow deletes, of words added to user dictionary. You'll find the "Edit Dictionary..." button, in the Interface/Options area. Reminder: you can add words to your user dictionary, by right-clicking a misspelled word, and clicking, "Add to Dictionary"
- r42 - Beta release for PTR Patch 3.3. Misspelled is fully compatible with the current PTR. This beta release contains only a TOC bump, and no other changes. I'll leave this release flagged as beta until patch 3.3 is released and I can perform final testing.
- r41 - Fixed a version number typo.
- r40 - Modified a hook to WIM, needed to remove the highlighting of misspelled words, prior to sending a chat message to the server. The author of WIM is due to add a specific API, just for this purpose, in the next release.
Added the following words to the US English dictionary (includes some proper nouns from the patch 3.3 PTR): Frostwing, Sindragosa, Baine, San'layn, Bronzebeard, Valanar, Doomguard, Saurfang, Plagueworks, Highlord, Tirion, Valithria, runeblade, Fordring, Muradin, Putricide, Deathwhisper, Hippogryph, Bloodhoof, Lich, Frostmourne, Wrynn, Marrowgar, wyrm, Skybreaker, undeath, Orgrim's, Dreamwalker, Shadowfiend, Mograine, Darion, Lana'thel - r39 - Added 77 additional words to the US English dictionary. (Patch 3.2 instance boss names)
- r37 - Replaced French dictionary with the one used in Chromium. I included the additional words Chromium added.
- http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/hunspell/dictionaries/ (fr_FR.dic_delta)
Fixed a typo/bug in the UTF8 section of RemovePrefix. This was causing words to be flagged as misspelled, if you were using one of the UTF8 (non-English) dictionaries and the word contained one of the affix compressed prefixes, even though the word was spelled correctly. - r36 - Added a French dictionary.
- r35 - Hopefully fixed the issue that was crashing client.
Hooked ChatThrottleLib:SendChatMessage so I can clean any misspelled highlighted words before the message is sent. - r34 - Misspelled now adds spell-checking to WIM chat windows. Please report any issues you have with this new feature.
- r33 - Guild member and friends player names phonetic codes were always being generated using the US English phonetic code routine. The generic phonetic code is now used for German and Spanish. Locals added for ipairs and pairs, to WordDict.lua, to increased speed.
- r32 - Added 642 new base words to the US English dictionary. See the change-log for more info.
- r31 - Fix an error occurring for new users that were not using a prior version and didn't have a savedVariables Misspelled.lua file.
- r30 - Spanish (esES) dictionary support added.
There is a new interface options page, that allows you to manually select a dictionary to load.
Fewer and better suggestions returned for misspelled words.
UTF8 multi-byte character encodings support added. - r25-r27 Capitalized misspelled words will stay capitalized after selecting a replacement suggestion. Long term I want to detect the beginning of a sentence, so I can correct incorrect Capitalization. For now this change should help.
Added these characters to the list of word separators: "(", ")", ";"
The Suggestion ranking EditDistance method's substitution cost, is now case insensitive. - r24 - Changed the misspelled highlighting to a medium-cyan-ish color. Hopefully this will make it easier to see misspelled words in all the common channels: Say, Party, Raid, Guild, Whisper, Trade, Yell
- r23 - Added Ace3 OptionDep tag to the .toc, so the addon would properly load for those running without libs embedded.
- r22 - Now uses AceEvent to replace the hidden frame and OnEvent hook needed to load guild members.
Added the "words" LFG and LFM to the US English dictionary.
When a suggestion is selected to replace a given misspelled word (or Ignore or Add to Dic. was selected), the cursor was positioned at end of the replaced word. Now, if there is a space after that word, the cursor is positioned to the right of that space. This should reduce the spell-checking needed when the only character on the line, to the right of a cursor, is a space. - r21 - Changed some of the frame xlm code, to hopefully hide a phantom dropdown frame that was being reported showing up.
- r20 - A German dictionary has been added and will load if you are using the German client.
Note: No Warcraft specific proper nouns have been included in the German dictionary.
Did some work to help ensure Misspelled's compatability with other chat addons.
Various speed improvements. - r19 - Fix for errors reported loading friends player names into the dictionary.
- r18 - Reduced memory needed to store the dictionary in half. Affix keys and phonetic codes are no longer stored using subtables. Memory usage went from 11.6Mb to 5.7Mb
The user dictionary storage format was changed to match the, updated, in memory dictionary storage format. Any existing user dictionaries will be converted the first time you load r18.
Improved the suggestions generation, especially when the word contains a capital letter.
Maximum number of suggestions returned is now 8, not 10. - r17 - No UI or functionality changes. Made some parts of the code more efficient.
- r16 -
Maximum suggestions increased to 10
Fixed an error where words in all CAPS, or words that contained numbers were throwing a Lua error.
Fixed the chat edit cursor position so it moves naturally as you perform edits in and around misspelled highlighted words. Wow this was a lot of work. Did you know you can crash Wow, with an invalid cursor position!
Fixed a problem where the spell checking routine was firing twice, if it found a misspelled word.
More code cleanup. There shouldn't be any remaining, non reachable code.
We're getting very near release quality! - r15 - The Misspelled word suggestions pop-up dialog now takes up less space. And a "Cancel" option was added to the bottom of the pop-up.
Guild members weren't always loading. The loading guild members routine is now delayed until the first ChatEditBox_OnTextChanged event. I wasn't always getting guild member info during addon loading. - r14 - Fixed error loading guild members
- r13 - Your friends and guild roster are now, upon zone-in, added to the list of correctly spelled words. Suggestions that match a friend or guild member player name are flagged with either (Friend) or (Guild), in the suggestions right-click pop-up. Lots of cleanup and remarks added to the code. Fixed cases where editing near the boundary of a highlighted misspelled word would mangle color tag information leaving only partial color tags. Started implementing routines to correctly set the cursor position when the chat text is changed by Misspelled. More work is still needed here.
- r11 - Fixed an error that occurred when adding a word to the user dictionary.
- r10 - Debug print statements turned off, fixes related to clearing cached information about the current chat text.
- r09 - Fixes for Chatter
- r07 - Added Wrath dungeon and raid boss names to the standard Dictionary, along with the words: Jewelcrafting, Leatherworking, mana, and Warcraft
- r06 - Fixes problems with embedded links.
- r05 - "Ignore All" and "Add to User Dictionary" features implemented.
-Nate
In reply to sommershade:
The TOC version will probably just need to be updated. I'll work on and update soon. The good news is the proper nouns from the Burning Crusade are included in the English dictionary of correctly spelled words, so they'll show up as suggestions.
In reply to sommershade:
I just released an update. Let me know if it has and issues for you.
-Nathan
This addon is currently adding nearly 24 seconds to my loadscreens and has been grifing me since shadowlands.
o tried to use it with rus localization
it doesn't work
will there be an update for Shadowlands?
In reply to orfieus:
I've pushed an update for Wow 9. Let me know if you have any issues.
Are there any plans to add the option to change the color of words that are spelt incorrectly?
In reply to ByucknahTheRed:
The color I selected for the highlighting can be changed in the Misspelled.lua file. Change line 122: local SPELLED_WRONG_HIGHLIGHT = "|cff7dc6fb" --The color misspelled words will get changed into. (Medium-Cyan-ish)
The color value needs to be in this format: |caarrggbb c(aa being the alpha transparency value)(rr, gg, bb, being the color values in hex format and RGB order)
I selected a color that wasn't being used for any other purpose in chats. That may no longer be the case or another addon might be using a similar color. Feel free to experiment with different values.
In reply to nrpieper:
Yeah, some communities seem to use the same color by default as misspelled now. I was super confused why my misspelled was not working until I realized "Oh! This community I joined uses the same color!" so I ended up changing the community color but I have been wanting to change it to a very bright red color instead for a while.
Thank you so much for this information so I can change the color. Also thank you this addon, seriously this addon is a god send and makes me feel so much more confident when typing in game. Seriously, this has to be my favorite WoW addon because of just how helpful it is.
In reply to ByucknahTheRed:
Thanks for the kind words! 😊
it doesn't work with russian classic client
looks like no dictionary added
Is not working with current update in retail. When you correct a word the edit box closes. With elvui you can hit enter again and it will show the text with the corrected word however this is annoying and is not working as intended. I assume anyone not using elvui, which says your text, probably is losing all of their text except the corrected word. Please fix.
Ever since 8.3 was released, I've been having trouble with this addon. Every time I try to correct a typo, it would close the chatbox, when I open up the chatbox only the word I tried to correct was in the box while everything else I typed in vanished.
Classic installs over Retail.
EVERYDAY i have to reinstall to get Retail to work correct.
Please Fix!!!
In reply to BOGsocks:
Thanks for the bug report. I'll work to get it fixed.
In reply to BOGsocks:
I updated the build resulting deploy order. I'm hoping this'll fix the issue.
"Usage note: Spell Checking is performed as you complete each work you've typed."
*giggle*
Thank you for updating this for Classic. Really wish it came pre-installed.
In reply to Spiricore:
Updated. Thanks!
Looks to be functioning now for me :D Thanks for updating it.
I've fixed the bug with Wow Classic and I'm pushing out version v1.7.4 now.
Report back if you run into any additional errors.
Thanks