Socket
Socket
Sign inDemoInstall

bot-lang

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bot-lang - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

336

data/replace/contractions.txt

@@ -1,5 +0,5 @@

sha_n't shall_not
ai_n't am_not
ca_n't can_not
do_n't do_not
sha+n't shall+not
ai+n't am+not
ca+n't can+not
do+n't do+not
'n and

@@ -16,4 +16,4 @@ & and

'cuz because
cannot can_not
'd_better I_had_better
cannot can+not
'd+better I+had+better
'em them

@@ -34,176 +34,176 @@ 'fore before

'scuse excuse
'sup what_is_up
'taint it_is_not
'sup what+is+up
'taint it+is+not
'til until
'tis it_is
'tisn't it_is_not
'twas it_was
'twasn't it_was_not
'tis it+is
'tisn't it+is+not
'twas it+was
'twasn't it+was+not
'tween between
'twere it_were
'tweren't it_were_not
'twill it_will
'twould it_would
'twere it+were
'tweren't it+were+not
'twill it+will
'twould it+would
've have
'way away
ain't is_not
albeit although_it_is
amn't am_not
anyone'll anyone_will
aren't are_not
bettern't better_not
c'mere come_here
c'mon come_on
can't can_not
can't_'ve can_not_have
ain't is+not
albeit although+it+is
amn't am+not
anyone'll anyone+will
aren't are+not
bettern't better+not
c'mere come+here
c'mon come+on
can't can+not
can't+'ve can+not+have
cap'n captain
could've could_have
couldn't could_not
couldn't_'ve could_not_have
daren't dare_not
did'nt did_not
didn't did_not
doesn't does_not
could've could+have
couldn't could+not
couldn't+'ve could+not+have
daren't dare+not
did'nt did+not
didn't did+not
doesn't does+not
doin' doing
don't do_not
don'tcha don't_you
everybody'll everybody_will
everybody_'s everybody_is
everything_'s everything_is
g'day good_day
g'night good_night
don't do+not
don'tcha don't+you
everybody'll everybody+will
everybody+'s everybody+is
everything+'s everything+is
g'day good+day
g'night good+night
gov't government
hadn't had_not
hasn't has_not
haven't have_not
he'd he_'d
he'll he_will
he_'s he_is
here_'s here_is
how'd how_did
how're how_are
how's how_is
how've how_have
how_'s how_is
I'd I_'d
i'd I_'d
i'd_'ve I_would_have
I'd_'ve I_would_have
i'll I_will
I'll I_will
i'm I_am
I'm I_am
im I_am
Im I_am
i've I_have
I've I_have
in't is_it_not
hadn't had+not
hasn't has+not
haven't have+not
he'd he+'d
he'll he+will
he+'s he+is
here+'s here+is
how'd how+did
how're how+are
how's how+is
how've how+have
how+'s how+is
I'd I+'d
i'd I+'d
i'd+'ve I+would+have
I'd+'ve I+would+have
i'll I+will
I'll I+will
i'm I+am
I'm I+am
im I+am
Im I+am
i've I+have
I've I+have
in't is+it+not
int'l international
isn't is_not
it'd it_'d
it'll it_will
it'sn't it_is_not
it_'s it_is
it's it_is
let's let_us
let_'s let_us
isn't is+not
it'd it+'d
it'll it+will
it'sn't it+is+not
it+'s it+is
it's it+is
let's let+us
let+'s let+us
li'l little
m'ladies my_ladies
m'lady my_lady
m'lord my_lord
m'lords my_lords
m'ladies my+ladies
m'lady my+lady
m'lord my+lord
m'lords my+lords
ma'am madam
mayn't may_not
might've might_have
mightn't might_not
more'n more_than
must've must_have
mustn't must_not
mayn't may+not
might've might+have
mightn't might+not
more'n more+than
must've must+have
mustn't must+not
n't not
needn't need_not
nobody_'s nobody_is
nothing_'s nothing_is
needn't need+not
nobody+'s nobody+is
nothing+'s nothing+is
o'er over
oughtn't ought_not
sha'n't shall_not
sha'nt shall_not
shalln't shall_not
shan't shall_not
she'd she_'d
she'll she_will
she_'s she_is
should've should_have
shouldn'a should_not_have
shouldn't should_not
shouldn't_'ve should_not_have
somebody_'s somebody_is
someone_'s someone_is
something_'s something_is
t'other the_other
t'was'nt it_was_not
t'was it_was
that'd that_'d
that'll that_will
that'll_'ve that_will_have
that_'s that_is
that's that_is
there'd there_'d
there'll there_will
there're there_are
there_'s there_is
there's there_is
they'd they_'d
they'll they_will
they're they_are
they've they_have
things'll things_will
this'd this_'d
this'll this_will
oughtn't ought+not
sha'n't shall+not
sha'nt shall+not
shalln't shall+not
shan't shall+not
she'd she+'d
she'll she+will
she+'s she+is
should've should+have
shouldn'a should+not+have
shouldn't should+not
shouldn't+'ve should+not+have
somebody+'s somebody+is
someone+'s someone+is
something+'s something+is
t'other the+other
t'was'nt it+was+not
t'was it+was
that'd that+'d
that'll that+will
that'll+'ve that+will+have
that+'s that+is
that's that+is
there'd there+'d
there'll there+will
there're there+are
there+'s there+is
there's there+is
they'd they+'d
they'll they+will
they're they+are
they've they+have
things'll things+will
this'd this+'d
this'll this+will
thro' through
wasn't was_not
wat_'s what_is
we'd we_'d
we'll we_will
we're we_are
we've we_have
weren't were_not
what'd what_did
what'll what_will
what're what_are
what've what_have
what's what_is
what_'s what_is
when_'s when_is
where'd where_did
where'm where_am
where're where_are
where've where_have
where_'s where_is
who'd who_'d
who'll who_will
who're who_are
who's who_is
who've who_have
who_'re who_are
who_'s who_is
why'd why_did
why's why_is
why_'s why_is
wo'n't would_not
won't will_not
would've would_have
wouldn't would_not
wouldn't_'ve would_not_have
y'all you_all
y'all_'s you_all_are
y'could've you_could_have
y'know you_know
you'd you_'d
you'da you_would_have
you'l you_will
you'll you_will
you'r you_are
you're you_are
you'v you_have
you've you_have
you_'s you_are
wasn't was+not
wat+'s what+is
we'd we+'d
we'll we+will
we're we+are
we've we+have
weren't were+not
what'd what+did
what'll what+will
what're what+are
what've what+have
what's what+is
what+'s what+is
when+'s when+is
where'd where+did
where'm where+am
where're where+are
where've where+have
where+'s where+is
who'd who+'d
who'll who+will
who're who+are
who's who+is
who've who+have
who+'re who+are
who+'s who+is
why'd why+did
why's why+is
why+'s why+is
wo'n't would+not
won't will+not
would've would+have
wouldn't would+not
wouldn't+'ve would+not+have
y'all you+all
y'all+'s you+all+are
y'could've you+could+have
y'know you+know
you'd you+'d
you'da you+would+have
you'l you+will
you'll you+will
you'r you+are
you're you+are
you'v you+have
you've you+have
you+'s you+are

@@ -404,2 +404,3 @@ Jan January

bout about
boo_ya hooray
boyfriends_' boyfriend+'s

@@ -406,0 +407,0 @@ bro brother

@@ -17,2 +17,3 @@ <attaboy

<yippy
<yowzit
<yowzit
boo+ya

@@ -16,3 +16,3 @@ 'use strict';

var re10 = new RegExp(/\d,\d/g);
var re11 = new RegExp(/_/g);
// const re11 = new RegExp(/_/g);

@@ -38,3 +38,3 @@ var pre = function pre() {

msg = msg.replace(re9, '+');
msg = msg.replace(re11, ' ');
// msg = msg.replace(re11, ' ');
msg = msg.replace(re10, function (v) {

@@ -41,0 +41,0 @@ return v.replace(',', '');

@@ -31,3 +31,2 @@ "use strict";

var phrase = _util2.default.replacements[word][j];
// console.log(`Testing "${phrase.phrase}"`);
if (phrase.phraseRegex.test(msg)) {

@@ -34,0 +33,0 @@ set.push(phrase.source);

{
"name": "bot-lang",
"version": "1.0.2",
"version": "1.0.3",
"description": "Common bot language subsitutions and tags.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -11,3 +11,3 @@ const re1 = new RegExp(/\+/g);

const re10 = new RegExp(/\d,\d/g);
const re11 = new RegExp(/_/g);
// const re11 = new RegExp(/_/g);

@@ -29,3 +29,3 @@ const pre = function(msg = '') {

msg = msg.replace(re9, '+');
msg = msg.replace(re11, ' ');
// msg = msg.replace(re11, ' ');
msg = msg.replace(re10, v => v.replace(',', ''));

@@ -32,0 +32,0 @@ return msg;

@@ -19,3 +19,2 @@ import fs from "fs";

const phrase = util.replacements[word][j];
// console.log(`Testing "${phrase.phrase}"`);
if (phrase.phraseRegex.test(msg)) {

@@ -22,0 +21,0 @@ set.push(phrase.source);

@@ -5,2 +5,8 @@ var mocha = require("mocha");

lang.util.prepFile("replace/contractions.txt");
lang.util.prepFile("replace/spellfix.txt");
lang.util.prepFile("replace/british.txt");
lang.util.prepFile("replace/substitutes.txt");
lang.util.prepFile("replace/frivolous.txt");
describe('Bot-Lang', function(){

@@ -24,2 +30,6 @@ var startTime;

it("should not remove double underbar", function() {
assert.equal(lang.clean.all("__B__"), "__B__");
});
it("should remove extra spaces", function() {

@@ -88,3 +98,3 @@ assert.equal(lang.clean.all("this is spaced out"), "this is spaced out");

assert.equal(lang.tag.test("yes", "I am sure"), true);
assert.equal(lang.tag.test("yes", "Nope"), false, "yes is not nope");
assert.equal(lang.tag.test("yes", "Nope"), false );
assert.equal(lang.tag.test("no", "Nope"), true);

@@ -91,0 +101,0 @@ assert.equal(lang.tag.test("apology", "well excuse me princess"), false);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc