language-classifier

0.0.1 • Public • Published

language-classifier

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

Installation

$ npm install language-classifier

Example

var lang = 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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i language-classifier

Weekly Downloads

1,534

Version

0.0.1

License

none

Last publish

Collaborators

  • tjholowaychuk