User:Luna Santin/RfcuParser

From Wikipedia, the free encyclopedia

RfcuParser is a simple program, useful for archiving checkuser requests. Wrote it in Java, largely to practice my fledgling ability with regular expressions. If you'd like a copy, let me know.


Contents

[edit] How to use it

You should see two text areas, when you run the program. Into the left field, paste the full, raw text of any checkuser case ready to be archived. Then, press the "parse" button.

After parsing, the right text area should show you the case's archive entry, such as would be appropriate for posting on WP:RFCU/OLD. The parser will attempt to parse all sections you give it, but will stop parsing if it detects a change in years (2006, 2007, etc; this is because the checkuser archives are currently organized by year). If you want to parse only a single section, obviously, provide only one section to be parsed.

[edit] Version history

v0.1
  • First release.
v0.1.1
  • Parses and outputs all sections of a case, for current year.
  • Fixed indicator/date loop bug.


[edit] Bugs

  • Resolved Indicator/date parsing appears to get stuck, when the indicator text is {{declined}} or {{Declined}}. Not sure why, yet. Work around it by editing case text before parsing -- the particular indicator used is irrelevant to the parsing.
  • Shouldn't be missing indicator/date pairs spanning multiple lines; work on that.

[edit] Features

  • Resolved Multiple case parsing, including rowspan. Split by sections?
  • Closed Allow manual entry for case name and date, if parsing fails?
  • In addition to parsing cases into reports, parse reports into full archive.
  • Regex improvement; template should not be case sensitive in some of these areas.