<commit_before>package DDG::Spice::Reddit;

use DDG::Spice;

triggers query_lc => qr#^(?:reddit|subreddit|/r/|r/)\s*(?:/r/|r/)*(\w+)#i;
spice to => 'http://www.reddit.com/r/$1/about.json?jsonp=ddg_spice_reddit';

handle matches => sub {
    my ($rname) = @_;
    return $rname if $rname;
    return;
};

1;<commit_msg>Changed Reddit trigger to not clobber RedditSearch<commit_after>package DDG::Spice::Reddit;

use DDG::Spice;

triggers query_lc => qr#^(?:reddit|subreddit|/r/|r/)\s*(?:/r/|r/)*(\w+)\s*$#i;
spice to => 'http://www.reddit.com/r/$1/about.json?jsonp=ddg_spice_reddit';

handle matches => sub {
    my ($rname) = @_;
    return $rname if $rname;
    return;
};

1;
{'fraction_non_alphanumeric': 0.2259970457902511, 'fraction_numerical': 0.005908419497784343, 'mean_word_length': 4.380952380952381, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7425286', 'n_tokens_mistral': 297, 'n_tokens_neox': 298, 'n_words': 47}