CoHarsh / textcompare

Simple NPM package that will compare two provided text and return the infomation regarding that two text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textcompare-NPM package

An NPM package that will compare two texts and analyse the texts and give results.

Functions :

  • similarity() Compare two text and get the similar percentage and word count into them
const {percentage,count} = similarity(stirng1,string2);
  • topkfreq() Get top k words in a string provided with error handliing and efficient time complexity and space complexity.

    Here k is interger string1 is input string

cosnt word = topkfreq(string1,k);

About

Simple NPM package that will compare two provided text and return the infomation regarding that two text


Languages

Language:C++ 53.4%Language:JavaScript 46.6%