undefined method [] when compiling pokemon txt?

I made extensive edits to the pokemon.txt file. Nothing is formatted incorrectly, as far as I can tell. What's the deal?

How extensively can you edit pokemon.txt, by the way? I had removed species entirely, changed movesets and typing, so on.