<commit_before>'use strict';

module.exports = defineRules;

var broWords = [
    'bro', 'bros',
    'crank',
    'crush',
    'skillz'
];

function defineRules (linter) {

    // Bro terminology
    linter.addRule(function (spec, result) {
        var broMentions = spec.containsAnyOfWords(broWords);
        var amount = (broMentions.length > 2 ? 'Lots of' : 'Some');
        if (broMentions.length > 0) {
            result.addWarning(amount + ' "bro culture" terminology is used');
            result.addCultureFailPoints(broMentions.length);
        }
    });

}<commit_msg>Update bro-culture.js<commit_after>'use strict';

module.exports = defineRules;

var broWords = [
    'bro', 'bros',
    'crank',
    'crush',
    'dude', 'dudes', 'dudebros',
    'skillz'
];

function defineRules (linter) {

    // Bro terminology
    linter.addRule(function (spec, result) {
        var broMentions = spec.containsAnyOfWords(broWords);
        var amount = (broMentions.length > 2 ? 'Lots of' : 'Some');
        if (broMentions.length > 0) {
            result.addWarning(amount + ' "bro culture" terminology is used');
            result.addCultureFailPoints(broMentions.length);
        }
    });

}
{'fraction_non_alphanumeric': 0.1409507923269391, 'fraction_numerical': 0.003336113427856547, 'mean_word_length': 2.7151702786377707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7451394', 'n_tokens_mistral': 406, 'n_tokens_neox': 389, 'n_words': 82}