1.3.2 • Published 4 years ago

hookejs v1.3.2

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

HookeJs

npm.io code style: prettier

An open source plagiarism detector and autocitation built in node.

Installation

npm install hookejs

Usage

For auto-citation:

hooke = require("hookejs")
plagiarisedText = `In information theory, linguistics and computer science, the Levenshtein distance is a string metric for measuring the difference between two sequences`
citedText = hooke.autoCitation({text: plagiarisedText, replace: true})
console.log(citedText)

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.

  • autoCitation: Returns the given text with citations (using the match function) or the replacements needed to make the citation and the bibliography (controlled by the replace parameter)

Note

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

1.3.2

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago