Skip to content

Repository files navigation

language-classifier

Programming language classifier based on harthur's Bayesian classifier module.

Installation

$ npm install language-classifier

Example

varlang=require('language-classifier');lang('for link in links:');// => "python"lang('Foo.prototype.bar = function(){}');// => "javascript"lang('#include <stdio.h>');// => "c"

Training

To train simply invoke make memory.

Supported languages

  • ruby
  • python
  • javascript
  • objective-c
  • html
  • css
  • shell
  • c++
  • c
  • coffee-script

License

MIT

About

Programming language classifier for node.js

Resources

Stars

82 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages