Programming language classifier based on natural classifier module.
$ npm install tolmach
var tolmach = require('tolmach');
tolmach.detect('for item in items:');
// => "python"
tolmach.detect('#include <stdio.h>');
// => "c"
tolmach.detect('prices = items.map{ |i| i.price }');
// => "ruby"
c
csharp
fortran
go
haskell
java
javascript
lisp
lua
objective-c
perl
php
python
ruby
rust
shell
swift
vbnet