compromise
Version:
natural language processing in the browser
25 lines (22 loc) • 454 B
JavaScript
;
const Text = require('../../index');
// const Noun = require('./noun');
class Things extends Text {
data() {
return this.mapTerms((t) => {
return {
text: t.text
};
});
}
static find(r) {
r = r.splitAfter('#Comma');
let yup = r.people();
yup.concat(r.places());
yup.concat(r.organizations());
yup = yup.clone();
// yup.toUpperCase();
return yup;
}
}
module.exports = Things;