GithubHelp home page GithubHelp logo

knwl.js's Introduction

Knwl.js

Find dates, times, emails, phone numbers, links, reading time, even the emotion of the text, or check if it's spam. Knwl.js makes it possible to scan through large amounts of text for data that may be of interest.

####Cenny.js Plugin For those interested in version of Knwl.js that has basic Cenny.js functionality (early development), look here: https://github.com/loadfive/cenny.js/tree/master/plugins

###Demo: http://byteaspect.com/knwlDemo

##How to use

Add Knwl.js to the <head>

Create a new instance of the Knwl object:

var x = new Knwl();

Initiate crawling of a string:

x.init( string );

Get data:

x.get('dates'); //returns array of dates found: [month,day,year, string snippet]

Types of data that can grabbed:

"dates" - dates found in string.

"times" - times found in string.

"links" - links found in string.

"emails" - emails found in string.

"phones" - phone numbers found in string.

"places" - places found in string.

"readingTime" - estimated reading time of string.

"emotion" - estimated emotion, works best with shorter strings (comments, etc).

"spam" - checks if text is possibly spam. Returns true or false.

Please note that Knwl.js is still in early development, and can yield varying results.

If you want a real-time, plug 'n play backend to store all the data you find, you might like Cenny.js: http://github.com/loadfive/cenny.js

###Building

For Node, if uglify-js is installed globally ( npm install uglify-js -g ) then

uglifyjs -o ./knwl.min.js ./knwl.js

will create knwl.min.js.

###Licence

Project released under an MIT license.

knwl.js's People

Contributors

instyled avatar benjojo avatar joetime avatar

Watchers

Navid Nikpour avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.