Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(1 Kb)
Download
Updated: 02-28-12 12:46 AM
Pictures
File Info
Updated:02-28-12 12:46 AM
Created:06-09-09 10:03 AM
Downloads:1,651
Favorites:15
MD5:

Diction

Version: 1.0.4a
by: oomp [More]

Diction allows you to specify a list of words to auto-correct as you type.

There's no in-game configuration, so all words must be added via words.lua, which simply requires you to open it in your favourite text editor (e.g. Notepad) and edit as you wish. I've included some example words from this list to get you started, feel free to add your own.

The following is an illustration where "eaxmple" and "snetence" have been specified as words to be automatically corrected...


* * * Be careful not to overwrite your words.lua file when updating! * * *

v1.0.4a | moop | Tuesday, 28th February, 2012
- Minor code optimisations.
- Bump TOC to 40300.

v1.0.3 | moop | Sunday, 16th October, 2010
- Updated for patch 4.0.1.
- Bump TOC to 40000.

v1.0.2 | moop | Tuesday, 6th August, 2009
- Bump TOC.

v1.0.2 | moop | Tuesday, 16th June, 2009
- Words are now added via words.lua.

v1.0.1 | moop | Tuesday, 9th June, 2009
- Improved pattern matching. Thanks to High Five for the tip!
- Removed "lightening" from example words list.

v1.0.0 | moop | Tuesday, 9th June, 2009
- Initial release.
Archived Files (5)
File Name
Version
Size
Author
Date
1.0.3
1000B
oomp
10-16-10 10:58 AM
1.0.2
1024B
oomp
08-06-09 04:55 PM
1.0.2
1024B
oomp
06-15-09 07:00 PM
1.0.1
866B
oomp
06-09-09 06:26 PM
1.0.0
852B
oomp
06-09-09 10:03 AM


Post A Reply Comment Options
Unread 09-03-11, 04:56 PM  
creepy_inc
A Deviate Faerie Dragon
 
creepy_inc's Avatar

Forum posts: 10
File comments: 243
Uploads: 0
I don't suppose anyone is willing to share their list of words? I'm too lazy to go through and add a bunch myself
creepy_inc is offline Report comment to moderator  
Reply With Quote
Unread 10-16-10, 03:12 PM  
IRID1UM
A Deviate Faerie Dragon
 
IRID1UM's Avatar

Forum posts: 12
File comments: 92
Uploads: 0
Whoa, thanks for the superhumanly fast update and also thanks for the hint with the words.lua file, I for sure would have forgotten!
Cheers!
IRID1UM is offline Report comment to moderator  
Reply With Quote
Unread 10-16-10, 11:04 AM  
oomp
A Murloc Raider
 
oomp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 54
Uploads: 5
Originally posted by IRID1UM
Hi, I know, not many people seem to be using this addon, but will there still be an update?
Thanks!
Updated for patch 4.0.1 - be careful not to overwrite your words.lua file when installing the new version!
oomp is offline Report comment to moderator  
Reply With Quote
Unread 10-16-10, 08:52 AM  
IRID1UM
A Deviate Faerie Dragon
 
IRID1UM's Avatar

Forum posts: 12
File comments: 92
Uploads: 0
Hi, I know, not many people seem to be using this addon, but will there still be an update?
Thanks!
IRID1UM is offline Report comment to moderator  
Reply With Quote
Unread 06-22-09, 12:57 AM  
camperdave
A Kobold Labourer
 
camperdave's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 3
Uploads: 6
Exclamation Word List Merger

First off, I'd like to say, I love this addon!

The only problem I had with it was that there was no easy way for two people to merge their word lists without introducing duplicates. I wrote a small C# program to do this automatically, and have PM'ed one of the admins of this site to see if I can host it here (it's an .exe, but I'm more than willing to put the source out there). As soon as I get word from them, I'll put it up.

Edit: It's approved:

Get the Diction Word List Merger.
Last edited by camperdave : 06-22-09 at 01:30 PM.
camperdave is offline Report comment to moderator  
Reply With Quote
Unread 06-17-09, 01:47 AM  
IRID1UM
A Deviate Faerie Dragon
 
IRID1UM's Avatar

Forum posts: 12
File comments: 92
Uploads: 0
Hm, that is strange. I've been using the latest version of both addons and it didn't do anything. I'll enable lua errors and check again later, maybe there will be some clue.
And yes, thanks, my words list does look like the one you posted, I just copied the snippet I added. In total there are the default words and the ones I added in the correct formatting.
Thanks

Edit: I got it sorted out, it was an error on my side. Sorry for the confusion.
Last edited by IRID1UM : 06-17-09 at 02:57 AM.
IRID1UM is offline Report comment to moderator  
Reply With Quote
Unread 06-16-09, 03:55 PM  
oomp
A Murloc Raider
 
oomp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 54
Uploads: 5
Originally posted by IRID1UM
This addon doesn't seem to be working with Prat
I'm using Prat myself, and I haven't had any problems. What version are you using? If you're using the latest version (v1.0.2), your words.lua file should look like this:

Code:
Diction_Words = {
	["isnt"] = "isn't",
	["wasnt"] = "wasn't",
	["havent"] = "haven't",
	["didnt"] = "didn't",
	["weild"] = "wield",
	["couldnt"] = "couldn't",
}
oomp is offline Report comment to moderator  
Reply With Quote
Unread 06-16-09, 12:15 PM  
IRID1UM
A Deviate Faerie Dragon
 
IRID1UM's Avatar

Forum posts: 12
File comments: 92
Uploads: 0
Hi!
This addon doesn't seem to be working with Prat
Words I'd have added to the list:
["isnt"] = "isn't",
["wasnt"] = "wasn't",
["havent"] = "haven't",
["didnt"] = "didn't",
["weild"] = "wield",
["couldnt"] = "couldn't",

Cheers!
IRID1UM is offline Report comment to moderator  
Reply With Quote
Unread 06-12-09, 08:23 PM  
Tief
A Defias Bandit

Forum posts: 2
File comments: 9
Uploads: 0
Haven't used this, I just wanted to pat the author on the back for a wonderful idea! Awesome!

Tief is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 06:17 PM  
oomp
A Murloc Raider
 
oomp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 54
Uploads: 5
Originally posted by High Five
Code:
if current:find(" "..k.."$") then
	msg = current:gsub(" "..k.."$", " "..v)
	ChatFrameEditBox:SetText(msg)
elseif current:find("^"..k.."$") then
	msg = current:gsub(k, v)
	ChatFrameEditBox:SetText(msg)
end
Thanks for the tip, I'll make this change in v1.0.1, and indeed "lightening" is a word, an oversight on my part!
oomp is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 05:17 PM  
High Five
A Kobold Labourer
 
High Five's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 30
Uploads: 2
I suggest you replace line 27-30 with:
Code:
if current:find(" "..k.."$") then
	msg = current:gsub(" "..k.."$", " "..v)
	ChatFrameEditBox:SetText(msg)
elseif current:find("^"..k.."$") then
	msg = current:gsub(k, v)
	ChatFrameEditBox:SetText(msg)
end
That will make it only check the final word, getting rid of the paladindindins, etc.

Also, FYI, there is a word "lightening".
High Five is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 04:33 PM  
Sjak
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 15
Uploads: 9
Originally posted by oomp
[b]Sjak: I'm aware of this, a simple fix would be to add:

Code:
["pala "] = "paladin ",
That is, add a space after each word, the only problem with this solution is if "pala" is the last word in the sentence, you'll need to add an extra space in order to replace it, otherwise it should work.
Ah, thanks didn't think of that
Sjak is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 02:34 PM  
oomp
A Murloc Raider
 
oomp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 54
Uploads: 5
Sjak: I'm aware of this, a simple fix would be to add:

Code:
["pala "] = "paladin ",
That is, add a space after each word, the only problem with this solution is if "pala" is the last word in the sentence, you'll need to add an extra space in order to replace it, otherwise it should work.

-- EDIT --

If you wanted to, for example, add "lock" => "warlock", the space would have to be added before each word, instead of after, that is:

Code:
[" lock"] = " warlock",
Although, I don't advise this, since you may way to say something like "Can you pick this lock?" to a rogue, or something.

Similarly, as with the "pala " example, " lock" won't be replaced if it's at the start of the sentence, unless a space is added before it.
Last edited by oomp : 06-09-09 at 02:47 PM.
oomp is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 01:59 PM  
Sjak
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 15
Uploads: 9
I wanted to use this to let me continue being lazy and use the short versions of the class names, but when changing "pala" into "paladin" this happens. Any chance you could add something to stop that?
Sjak is offline Report comment to moderator  
Reply With Quote
Unread 06-09-09, 12:43 PM  
JackOnTheMap
A Murloc Raider

Forum posts: 8
File comments: 131
Uploads: 0
This should be included in the default WoW UI.

An absolute requirement.

Though I don't see "Ridiculous" in the list. :P
JackOnTheMap is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: