Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Overall UI:
- - Have a text-field where user can input an analysis or whatever
- - Implement the user-defined settings below
- - Have a button to print a c/p-able corrected text, with BBCode representing edits
- - Corrected Text preview
- How to make corrections
- - Store the last three words
- - Run the following algorithms/checks on the last three words checked
- - If no changes, add original text to text storage
- - If changes need to be made, surround removed text with appropriate strikethrough and color BBCode, then add space and add new text with the appropriate color BBCode (colors are defined by user), then add all that to the text storage
- Spellchecking:
- Use some sort of algorithm to detect misspellings and use the following as a dictionary:
- - Get a list of all Pokemon for spellchecking
- - Get a list of all Items for spellchecking
- - Get a list of all Moves for spellchecking
- Some Exceptions may have to be made if a name is too close to a real word (i.e. Drowzee and Ditto)
- Capitalization:
- - Detect uncapitalized words from the above dictionary and capitalize them
- - Detect Headers for C&C entries and capitalize all words within them if they aren't already
- - Certain status effects (Burn and Poison might be hard to detect, so ignore them)
- - Clauses
- - The terms "defenses", "bulky", "nature", "critical hit", "dual screens", "wild", and "item" are always lowercase
- - Most of the terms in the following section
- - Detect previous period usage and see if decapitalization is necessary
- - Detect Set Titles and make sure proper capitalization is done
- - Be mindful of words in general analysis formatting
- Plural:
- - Remove "s" from Pokemon names [prolly treated as mispellings anyways]
- Discrete Pokemon-related Changes:
- Use Hashmap(s) to see if they need correcting
- - Change [X] type -> X-type
- - TYPE Arceus -> Arceus-type
- - TYPE Silvally -> Silvally-type
- - revenge-kill or Revenge Kill -> revenge kill
- - super-effective or Super Effective -> super effective
- - hyper-offense -> hyper offense
- - Abbreviation mons/items -> Full names (i.e. Zard -> Charizard, will update later)
- - Mega Charizard-X / Y -> Mega Charizard X / Y
- - Mega Mewtwo-X / Y -> Mega Mewtwo X / Y
- - Hidden Power-Type or Hidden Power [Type] -> Hidden Power Type
- - Incorrectly written formes -> Correctly written formes
- - Speed-tie / Speed Tie / speed tie / speedtie / Speedtie -> Speed tie
- - Lati@s -> Latios and Latias
- - GameFreak / Gamefreak -> Game Freak
- - Ho-oh -> Ho-Oh
- - Wi-fi / Wifi -> Wi-Fi
- - ingame / in game -> in-game
- - "Poké" words i.e. Pokédex should have accent
- Discrete non-Pokemon-related changes:
- Use Hashmap(s) to see if they need correcting
- - Non-ASCII characters -> ASCII characters
- - Non-American words -> American words (whilst -> while, etc.)
- - Correct Possessive words ending in s if possible
- User discretion:
- Have the user dictate if the following should be changed
- - Ask if user is writing an analysis or a TFP article.
- - If former, Pokémon -> Pokemon (EXCEPTION: Pokémon Center)
- - If latter, Pokemon -> Pokémon
- - Ask user for two colors, one for additions, and one for removals
Advertisement
Add Comment
Please, Sign In to add comment