<commit_before>const Command = require("../base/Command");


/**
 * The list of acronyms defined in data/acronym.json was transposed from the SWGoH forum. Any update there will need to make it's way into here.
 * //https://forums.galaxy-of-heroes.starwars.ea.com/discussion/154048/guide-to-the-acronyms-and-terms-of-star-wars-galaxy-of-heroes-swgoh
 */
class Acronyms extends Command {
    constructor(client) {
        super(client, {
            name: "acronyms",
            category: "Misc",
            aliases: ["acr", "acronym"],
        });
    }

    async run(client, message, [ ...acronym ], options) { // eslint-disable-line no-unused-vars
        const acronymsLookup = client.acronyms;
        const acronyms = Object.keys(acronymsLookup);

        if (!acronym.length) {
            return message.channel.send(message.language.get("COMMAND_ACRONYMS_INVALID");
        }

        const lookupList = acronym.map(a => a.trim().toLowerCase());
        const matchingItems = acronyms.filter(acr => lookupList.includes(acr.toLowerCase()));

        if (!matchingItems.length) {
            return message.channel.send(message.language.get("COMMAND_ACRONYMS_NOT_FOUND"));
        } 
        <commit_msg>Whoops<commit_after>const Command = require("../base/Command");


/**
 * The list of acronyms defined in data/acronym.json was transposed from the SWGoH forum. Any update there will need to make it's way into here.
 * //https://forums.galaxy-of-heroes.starwars.ea.com/discussion/154048/guide-to-the-acronyms-and-terms-of-star-wars-galaxy-of-heroes-swgoh
 */
class Acronyms extends Command {
    constructor(client) {
        super(client, {
            name: "acronyms",
            category: "Misc",
            aliases: ["acr", "acronym"],
        });
    }

    async run(client, message, [ ...acronym ], options) { // eslint-disable-line no-unused-vars
        const acronymsLookup = client.acronyms;
        const acronyms = Object.keys(acronymsLookup);

        if (!acronym.length) {
            return message.channel.send(message.language.get("COMMAND_ACRONYMS_INVALID"));
        }

        const lookupList = acronym.map(a => a.trim().toLowerCase());
        const matchingItems = acronyms.filter(acr => lookupList.includes(acr.toLowerCase()));

        if (!matchingItems.length) {
            return message.channel.send(message.language.get("COMMAND_ACRONYMS_NOT_FOUND"));
        } 
        
{'fraction_non_alphanumeric': 0.13523573200992556, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 2.7044410413476263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5680528', 'n_tokens_mistral': 790, 'n_tokens_neox': 775, 'n_words': 140}