UNPKG

compromise

Version:

modest natural language processing

8 lines (5 loc) • 202 B
// does the term have any of these tags? const hasAny = (term, ...tags) => tags.some(tag => term.tags.has(tag)) // 'a b c' -> Set const toSet = str => new Set(str.split(' ')) export { hasAny, toSet }