hhhhhhhhhn / HookeJs

An open source plagiarism detector built in node.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HookeJs

code style: prettier

An open source plagiarism detector built in node.

Installation

npm install hookejs

Usage

For plagiarism detection:

hooke = require("hookejs")
plagiarisedText = `Sherlock Holmes (/ˈʃɜːrlɒk ˈhoʊmz/ or /-ˈhoʊlmz/) is a fictional private detective created by British author Sir Arthur Conan Doyle. Referring to himself as a "consulting detective" in the stories, Holmes is known for his proficiency with observation, deduction, forensic science, and logical reasoning that borders on the fantastic, which he employs when investigating cases for a wide variety of clients, including Scotland Yard.`
hooke.matchPrint({text: plagiarisedText})

Functions

  • match: Returns Source objects with a list of Match objects, which include the matched text start, end, a calculated score and a few more variables.

  • matchPrint: Prints match results in an understandable manner.

Note

This package can a google custom search API key and engine id, which can be accessed through function parameters or the G_API_KEY and G_ENGINE_ID environment variables. If not provided, it will scrape the results (use at your own risk)

About

An open source plagiarism detector built in node.

License:MIT License


Languages

Language:JavaScript 63.8%Language:TypeScript 36.2%