Complete: Deck set assignment deck converter

Having been inspired by Agetian's script to assign set values to quest deck lands, I've gotten a fair bit into a script that will take a deck file and find the proper standard, extended, or vintage era and assign the cards in the deck file appropriately. No more Type 2 decks from 1999 with cards from tenth edition!
So here's my quandary and where I could use some help.
I'm trying to define every iteration of standard, and that's quite time consuming considering the research but somewhere around 1999 it becomes quite hard to understand what was allowed in standard. If somebody here would please step forward with some help or information I'd greatly appreciate it and finish up my fancy script.
This is what I have got so far, but again I'm not too sure about some of the older standard setlists. As you can see, I only need to fill out information in a txt file in a similar format (not finalized yet) in order to compare decklists.
Very alpha-state WIP output:

EDIT: Sorry for the long post; I was able to find the following info on the official 1998 tournament rules sheet:
So here's my quandary and where I could use some help.
I'm trying to define every iteration of standard, and that's quite time consuming considering the research but somewhere around 1999 it becomes quite hard to understand what was allowed in standard. If somebody here would please step forward with some help or information I'd greatly appreciate it and finish up my fancy script.
This is what I have got so far, but again I'm not too sure about some of the older standard setlists. As you can see, I only need to fill out information in a txt file in a similar format (not finalized yet) in order to compare decklists.
- Code: Select all
Standard DKA ISD M12 NPH MBS SOM
Standard ISD M12 NPH MBS SOM
Standard M12 NPH MBS SOM M11 ROE WWK ZEN
Standard NPH MBS SOM M11 ROE WWK ZEN
Standard MBS SOM M11 ROE WWK ZEN
Standard SOM M11 ROE WWK ZEN
Standard M11 ROE WWK ZEN M10 ARB CON ALA
Standard ROE WWK ZEN M10 ARB CON ALA
Standard WWK ZEN M10 ARB CON ALA
Standard ZEN M10 ARB CON ALA
Standard M10 ARB CON ALA EVE SHM MOR LRW
Standard ARB CON ALA EVE SHM MOR LRW 10E
Standard CON ALA EVE SHM MOR LRW 10E
Standard ALA EVE SHM MOR LRW 10E
Standard EVE SHM MOR LRW 10E PLC FUT TSP TSB
Standard SHM MOR LRW 10E PLC FUT TSP TSB CSP
Standard MOR LRW 10E PLC FUT TSP TSB CSP
Standard LRW 10E PLC FUT TSP TSB CSP
Standard 10E PLC FUT TSP TSB CSP DIS GPT RAV
Standard FUT PLC TSP TSB CSP DIS GPT RAV 9ED
Standard PLC TSP TSB CSP DIS GPT RAV 9ED
Standard TSP TSB CSP DIS GPT RAV 9ED
Standard DIS GPT RAV 9ED SOK BOK CHK
Standard GPT RAV 9ED SOK BOK CHK
Standard RAV 9ED SOK BOK CHK
Standard 9ED SOK BOK CHK 5DN DST MRD
Standard SOK BOK CHK 5DN DST MRD 8ED
Standard BOK CHK 5DN DST MRD 8ED
Standard CHK 5DN DST MRD 8ED
Standard 5DN DST MRD 8ED SCG LGN ONS
Standard DST MRD 8ED SCG LGN ONS
Standard MRD 8ED SCG LGN ONS
Standard 8ED SCG LGN ONS JUD TOR ODY
Standard SCG LGN ONS JUD TOR ODY 7ED
Standard LGN ONS JUD TOR ODY 7ED
Standard ONS JUD TOR ODY 7ED
Standard JUD TOR ODY 7ED APC PLS INV
Standard TOR ODY 7ED APC PLS INV
Standard ODY 7ED APC PLS INV
Standard APC 7ED PLS INV PCY NEM MMQ
Standard 7ED PLS INV PCY NEM MMQ
Standard PLS INV PCY NEM MMQ 6ED
Standard INV PCY NEM MMQ 6ED
Standard PCY NEM MMQ 6ED UDS ULG USG
Standard NEM MMQ 6ED UDS ULG USG
Standard MMQ 6ED UDS ULG USG
Standard 6ED UDS ULG USG EXO STH TMP
Very alpha-state WIP output:

EDIT: Sorry for the long post; I was able to find the following info on the official 1998 tournament rules sheet:
- Code: Select all
2.3.2 Expansion Set Rotation
Expansion sets rotate into play environments on the first day of the month following their retail release dates as described in section 2.1.5. However, they rotate out in "blocks." A given large expansion and its two smaller expansions--essentially a year of Magic expansions-- enters Standard play as a new "block" when the large expansion rotates into the environment.
Example: The Rath Cycle block rotated into the Standard tournament environment with the release of Tempest. The Stronghold and Exodus sets are Rath Cycle expansions, and are therefore part of this block. The Tempest, Stronghold, and Exodus expansions will rotate out of the tournament environment together when the 1999 large expansion enters the environment (two years after Tempest was introduced to the environment).
Example: The Ice Age block (Ice Age-Homelands-Alliances) left this environment when the Tempest card set rotated in to start The Rath Cycle block.