match-detector
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

match-detector

Source code of match-detector npm package using easy-json-database

Usage

Import the detector and create a new MatchDetector

const { MatchDetector } = require('match-detector');

const detector = new MatchDetector('./database.json');

And use <#MatchDetector>.addElement({ word: 'any word or sentence', power: number between 1 and 10 }) to add an element

Use <#MatchDetector>.removeElement('any word or sentence') to remove an element

Use <#MatchDetector>.test('content') to test if the content matches the detector

Important

As all ai, the most datas you give, the most precise it will be.

Contact

Contact me on this discord server

Package Sidebar

Install

npm i match-detector

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.42 kB

Total Files

9

Last publish

Collaborators

  • greenskywastaken