<commit_before>import {parse} from '../parser';

/**
 * @ignore
 */
export default function ({types: t}) {
    return {
        visitor: {
            TaggedTemplateExpression(path, state) {
                if (path.node.tag.name === 'funclate' && path.node.quasi.quasis.length === 1) {
                    state.opts.output = 'string';
                    const factory = parse(path.node.quasi.quasis[0].value.cooked, state.opts);
                    path.replaceWithSourceString(factory);
                }
            }
        }
    };
};<commit_msg>add HTML parser add plugins review doc<commit_after>import {parse} from '../parser';

/**
 * @ignore
 */
export default function ({types: t}) {
    return {
        visitor: {
            TaggedTemplateExpression(path, state) {
                if (path.node.tag.name === 'funclate' && path.node.quasi.quasis.length === 1) {
                    state.opts.output = 'string';
                    const factory = parse(path.node.quasi.quasis[0].value.cooked, state.opts);
                    path.replaceWithSourceString(factory);
                }
            }
        }
    };
}
{'fraction_non_alphanumeric': 0.142226148409894, 'fraction_numerical': 0.0035335689045936395, 'mean_word_length': 1.6912114014251782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7286704', 'n_tokens_mistral': 325, 'n_tokens_neox': 314, 'n_words': 58}