Some of the links, particularly the one to the code, are broken now. Here's a TypeScript example:
// Library to validate data before writing to .csv
import { z } from "zod";
// readonly ["M", "F", "N"]
import { genderNames } from "../enums";
// Constructed according to @pkmn package
import {...