Perly-Bot icon indicating copy to clipboard operation
Perly-Bot copied to clipboard

Keywords/strings too broad?

Open perlancar opened this issue 9 years ago • 1 comments

I personally think the set of keywords and strings are too broad:

https://github.com/dnmfarrell/Perly-Bot/blob/master/lib/Perly/Bot.pm#L202

my $looks_perly =
    qr/\b(?:perl|perl6|cpan|cpanm|moose|metacpan|module|timtowdi|yapc|\:\:)\b/i;

Specifically, module and :: are not very Perl-specific.

perlancar avatar Feb 15 '16 03:02 perlancar

We tend to pull from Perl blogs, so there is already a context. The problem is that this is applied to the title and description instead of the actual content. I'm moving things around so we can fetch the actual posts and look that those, then apply stricter logic.

briandfoy avatar Feb 17 '16 20:02 briandfoy