compromise
Version:
natural language processing in the browser
18 lines (16 loc) • 350 B
JavaScript
;
const Terms = require('../../paths').Terms;
class Place extends Terms {
constructor(arr, lexicon, parent) {
super(arr, lexicon, parent);
this.city = this.match('#City');
this.country = this.match('#Country');
}
get isA() {
return 'Place';
}
root() {
return this.city.root();
}
}
module.exports = Place;