Need Help With SQL/FlatFile DataBase Use In a plugin

Discussion in 'Plugin Development' started by Kodfod, Jul 13, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Kodfod

    Okay, So I Currently have been working on a SQL data base of commonly misspelled words. I Need help implementing it into my pluign. Anyone willing to guide me in the right direction?
     
  2. Offline

    VeryBIgCorp

    Are you trying to replace the misspelled word with the rectified version?
     
  3. Offline

    Kodfod

    Yes, I am.

    For Example:

    "Hello I'm gong to the house"
    Would end up as:
    "Hello I'm going to the house"
     
  4. Offline

    VeryBIgCorp

    I would setup a map of (list of misspelled words-> correct word), and then check each word in the sent message against each list to determine whether it contains (keyword) that word. Then, if it does, I believe that there is a replace method in the string class which you can use.
    Sounds like a cool plugin! :D
     
  5. Offline

    Kodfod

    Alright, I guess i will work on that list =P
     
  6. Offline

    EnvisionRed

    That can lead to messups though, let's say you have a common mistake as "gong" with the correction being "going".
    If I say "The gong is my favorite instrument" then it will say "The going is my favorite instrument."
     
  7. Offline

    VeryBIgCorp

    Yeah it is context-sensitive, but if you were to check the words around it too, it could be really intensive.
     
  8. Offline

    Kodfod

    EnvisionRed: Very Good Point, but I will more than likely keep it mainly minecraft related ie: Block, Spawn, Home, Give, etc...
     
Thread Status:
Not open for further replies.

Share This Page