tj / Node Language Classifier
Programming language classifier for node.js
Stars: ✭ 69
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
- coffee-script
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].