export function parse(formula: string): [a: number, b: number] {
    formula = formula.trim().toLowerCase();

    if (formula === "even") {
        return [2, 0];
    } else if (formula === "odd") {
        return [2, 1];
    }

    const parsed = formula.match(RE_NTH_ELEMENT);

    if (!parsed) {
        throw new Error(`n-th rule couldn't be parsed ('${formula}')`);
    }
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.