public Rule getProductionRule(String search) {
        for (Rule rule : productionRules) {
            if (rule.search.equals(search)) {
                return rule;
            }
        }

        return null;
    }