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.
This plugin seem great its just what i'm looking for however i keep getting this error when i try to use the plugin.
http:pastebin.com/9qX7ZCSz
I am using version 1.5.2-R1.1-SNAPSHOT
@monster6286
Hey again,
ForcedGrammar actually used to do exactly that, but it opened up a can of worms that I quickly shut. It proved
very difficultpractically impossible to predict whether or not a sentence was meant to be a question. Thank you for the suggestion though, it would certainly be good if it could be made reliable.As to the syntax, whoops! Sorry, I had overlooked that. It shall be fixed!
Thanks again, ReddChicken.
@ReddChicken Thank you! I have a suggestion for this plugin. If maybe the first or second word of a phrase is a word like "is", "was", "why", "when", "how, "what", or anything along those lines, it turns the "." into a "?". This would be very cool! And maybe add the colon in the syntax too. xD
@monster6286
Hi monster,
In version 1.7, the way in which corrections are added was changed - you're being shown the syntax for a reason!
You now have to separate the words with a colon. To do what you want:
Thank you, ReddChicken.
/fg add doesn't seem to work, I have been testing it, and it is the only plugin I use. I do /fg add im i'm and it just gives me the syntax for /fg add.
Dear ReddChicken,
For some reason the plugin is not working for me. I use the latest version (1.7.1) and there are no errors in the console. Can you please help me?
These are my plugins: TheThuum 0.3.6 WorldBorder 1.7.2 Giants 5.0 Jump 1.0.0 BukkitCompat R22A KillCounter 1.4.1 CleanChat 0.6 Buycraft 5.3 Vault 1.2.25-b320 BanHammer 2.2.0 NoobResponse 3.00 VoteChecker 0.2 EnderPearlCoolDown 1.3.0 AntiAdvertising 2.1.5 WhatIsIt 1.3.5 OpenInv 2.0.2 ProtocolLib 2.4.1 NoAir 1.1 Votifier 1.9 mcMMO 1.4.05-b1870 MobArena 0.94.4.98 NoNpcTrade 1.1 ForcedGrammar 1.7.1 FoundDiamonds 3.6.3 DisposalSign 1.1.40 Citizens 2.0.8-SNAPSHOT (build 803) CommandCooldown 1.02 LinksOnSigns 1.5 PTweaks 6.0.5 AlphaChest 1.16.0 WorldEdit 5.5.6 JCVaultListener 2.0.3 PermissionsBukkit 2.0 PluginsBaker 0.3 AntiWitherDestruction 0.3 Teams 1.2.1 ColouredMotd 1.2.4 PluginReloader 1.3.1 PlayerHeads 3.1.0093 HealthBar 1.5.6 CombatTag 5.8.9 LogBlock 1.70 WorldGuard 5.7.3 with custom flags plugin. ItemSlotMachine 1.2.4 PvPTimer 1.1 RedeemMCMMO 1.1.4 BlockEnderDragon 1.1 Lottery 0.9.3 Parkour 2.0 BanRecipe 1.2 EndlessEnchant 2.95 Killstreaks 1.0 ZavAutoMessager 2.5 ClearLag 2.3.1 CustomPortals 1.1.2 [1.5.1-R0.2] SuperSpleef B 0.1.7 IceGeoIP 1.0 Simple Prefix 2.2.1 Essentials Pre2.11.1.2 Factions 1.6.9.5 floAuction 2.8.8 Orebfuscator 1.9.3 HeroBounty 1.9.5 Enjin Minecraft Plugin 2.4.3-bukkit PlotMe 0.13 Multiverse-Core 2.4-b52
@ReddChicken
Im using (1.5.2-R0.1), I'm also using the updated forcedgrammar and am still having this problem.
Thanks for taking the time to reply!
@GoldNintendo
Hi GoldNintendo,
I'm looking into this, could you please let me know which version of CraftBukkit, ForcedGramar and Java you are using?
@Cydrex
Hi Cydrex,
I am also looking into your problem, could you also let me know your CraftBukkit version please?
Can someone please help? I keep getting this error: 4:16:03 PM CONSOLE: [SEVERE] Could not pass event AsyncPlayerChatEvent to ForcedGrammar v1.7.1 4:16:03 PM CONSOLE: java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 6
I have made a pastebin of an error i keep getting when i try to use this plugin.
http:pastebin.com/6kZtSK55
@moneykid777
Hello again,
Okay, so am I to presume that you are using a plugin to add these colour codes into the game? If so, could you please tell me which one? I have to say, I don't really know what you're talking about.
The method of removing a permission will vary depending on your permission manager, but what you have suggested looks likely.
Thank you , ReddChicken.
@ReddChicken
What I meant is that since I can type in &6&l by default it wont correct phrases with the two of those but if i use something like &b or &c it works fine. Those are the only colors that I have tested it on.
And also to take out the fg.exempt permission do I just make it negative for example
- -fg.exempt
Thank you, moneykid
@moneykid777
Hi Moneykid,
Yes, that is exactly why. You will need to remove the fg.exempt node to have your messages corrected.
Could you explain what you mean by not working for colour codes please?
Thank you, ReddChicken.
How come this plugin does not work for Owners. This plugin works for default to admin but it simply does not work for owners. Is it because I have op and I have the fg.exempt permission node by default?
Edit: This does not work for color codes also
@Paint_Ninja
Hi Paint_Ninja,
I don't now what the significance of &f and &r is, but adding any characters to a word will bypass the corrections. ForcedGrammar is (despite its name) not designed to strictly enforce corrections, merely to catch common errors. It is not a censor, sorry!
As for the built in dictionary not working, I cannot explain. I have given it a quick check just now and it is working fine for me. If you continue to have problems with it, then please PM me and we'll get it sorted out.
Thank you, ReddChicken.
People are able to bypass corrections by typing &fWhatever or &rWhatever. Also, the built-in dictionary isn't working D:
@viperlee
Hi again Viperlee,
I cannot see any problems with ForcedGrammar on 1.5.2. If you're still having problems then they are likely being caused by conflicts with another plugin.
If you'd like some help tracking down the cause, then please private message me.
Thanks, ReddChicken.
@ReddChicken
Well, from what I'm seeing it's not working correctly. My "Fuck you" should turn into "I love you", but it's not. It's not correcting anything. I don't know why. :/
@viperlee
Hi Viperlee,
Although I haven't checked yet, I should expect that ForcedGrammar shall work on a 1.5.2 server fine as it is. If any issues are reported then I shall update ASAP for 1.5.2.
Will this be updated to 1.5.2? Or will you wait until 1.6 to update?