ForcedGrammar
ForcedGrammar modifies chat messages as they are sent to correct spelling and basic grammatical errors. It is capable of changing any words in a find and replace style customisable by you, as well as performing automatic grammatical corrections. The idea for this plugin came from Sabinno, here.
Features
This is a quick run down of the plugin's abilities.
The spelling correction relies on a list of corrections that is compiled by you. A list of common misspellings is included to get you started, provided by Bradgillap.
- Capitalise sentences
- Ensure sentences end with full-stops
- Correct spelling
- Update notification
- Enable/disable features via configuration file
- Escape individual messages from alteration
- Edit spelling correction list directly or with in-game commands.
- Restrict usage with permission nodes
An example
A message like i cant do grammar. sorry about that
could become I can't do grammar. Sorry about that.
In this example the plugin capitalised the first letter of each sentence, appended a full-stop onto the end of the message and corrected "cant" to "can't". However, you'll notice that the first sentence still doesn't make sense. Although ForcedGrammar can handle formal errors, it will not improve eloquence or style!
Questions? Problems?
Please visit the documentation if you want to know anything about ForcedGrammar that can't be found on this page. While this page is a summary, the documentation goes into a lot more depth.
If you would like to report an issue with the plugin then please do so using either the BukkitDev or GitHub issue trackers.
Also, if you've given yourself every permission node then you will have ForcedGrammar's fg.exempt
. Make sure that you negate this if you want your chat to be corrected!
Change log
version | level | date | changes |
---|---|---|---|
1.8.4 | patch | 7 July 2014 | fixes a bug which caused regular expressions to be output into the chat |
1.8.3 | patch | 24 May 2014 | several bug fixes, see file notes. Removes wildcard feature, sorry. |
1.8.2 | patch | 6 May 2014 | this-is-still-alive update! Sorry, mostly boring things. |
1.8.1 | patch | 12 July 2013 | include missing class file |
Contributing
This is really just a note to say that I am open to contributions if ever anyone has any to give. The project's source is available on GitHub.
That's a shame. I'll not change to something else though. I think I've said it before but this plugin is awesome! Apart from the obvious expletives it's not really used as a censor, more for comic effect. When the conversation runs like this it leaves half the server in tears of laughter some days.
[Player]: I love you (lol)
[Player]: What? I said I love you (lol)
[Player]:That's not my bag baby honest! (wtf)
[Player]:Ok, I'm trying to say I really love you (l o l)
[Player]:This is crazy, I can't say we will be together forever (laugh out loud)
[Player]:I can't handle this I've SQUIRREL! (gtg)
Everybody falls for it at least once!
:)
@luigi_vampa
Hey luigi_vampa,
Short answer: nope.
Longer answer: a while back I decided that ForcedGrammar - despite its rather harsh name - shouldn't try to be a censor. In this case, that means that I won't go out of my way to stop people from avoiding corrections.
I'll admit, a fair amount of that policy comes from the fact that trying to do so gets very complicated really quickly and that news ways of subverting the system will always appear. I'd expect that there are other plugins that could do what you want, but I don't think I will be implementing something like that. :)
Thanks for the question!
Hello Redd. Is it possible to add a full stop into the words? I've got 'lol' being edited to 'I love you', causes all sorts of funny encounters with people. They're starting to get wise though and are using dots in acronyms like 'l.ol' I can't use /fg add l.ol anyway around that?
@ReddChicken
It worked! thanks! For all using EssentialsGroupmanager, put in the permission of your op ranks: - -fg.exempt
@PFaurschou
Yup! :) http://wiki.ess3.net/wiki/Group_Manager#Negative_Nodes
@ReddChicken
I'm using Essentials GroupManager, and my rank has the permission '*' Which means that all permissions are enablerd for this rank, is there a way to remove just the one, from the permissions or the plugin in total?
@PFaurschou
That will depend on which permissions manager you are using. Look in the documention of your permissions manager for how to ensure that a player does not have a permission node.
@ReddChicken
I can't quite figure out how to change it correctly, how do I do it?
@PFaurschou
If you've given yourself all permissions then you will also has given yourself fg.exempt, which will stop your chat being corrected. Make sure that you don't have this permission node. :)
As an OP / Admin with all permissions, my messages dont get corrected. How do i make all messages get corrected?
<<reply 2242721="">>
Heya,
If you're using a permissions manager then you could do this by giving ops the
fg.exempt
permission.However, from your question I'm guessing that you are not using one, in which case I will galdly add this at some point.
Could you add an op_is_exempt option to the config file please?
@She_Wants_The_Q
You could try asking on the Minecraft Forums. They have a thread for requests: http://www.minecraftforum.net/forum/52-requests-ideas-for-mods/
@ReddChicken
ReddChicken,
Do you know of any client-side mod developers that could make a mod like yours?
Thanks for the quick reply :)
@She_Wants_The_Q
Hey She_Wants_The_Q (I won't ask what "The Q" is),
Unfortunately, creating Bukkit plugins and making client-side mods are very different tasks and I have no experience of doing the later.
Sorry about that.
Hi ReddChicken, can you please make a mod of this plugin (client-side for 1,7,2)? It would be greatly appreciated, as I do not use proper capitalization or punctuation while playing Minecraft, and it is a habit of mine Dx, and the server I play on wouldn't listen if I suggested it :/
Hi ReddChicken, can you please make a mod of this plugin (client-side for 1,7,2)? It would be greatly appreciated, as I do not use proper capitalization or punctuation while playing Minecraft, and it is a habit of mine Dx, and the server I play on wouldn't listen if I suggested it :/
@TinyTom38
Hey TinyTom,
Oh dear, that is not good at all. Could you open a ticket here and let me know which version of the plugin and CraftBukkit you are using? Thanks.
@ReddChicken
Hey when things are changed for me its showing as ${\b(?${\b(?i)\Qi\E\b})\Q<word here>\E\b}
@ThisUsernameIsMine
Reloading the configuration at the same time should be no bother, I'll do that. :)
Sorry about the delay from the notifier. There's not much I can do about it; the bottleneck is in the fetching of version information from Curse, which cannot be avoided. I could try putting off the fetching until after the server has started up. I'll look into it.
- Redd