Neoanthropic Preternatural Murmurings
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    tolmachpublic

    tolmach

    Build Status

    Programming language classifier based on natural classifier module.

    Installation

    $ npm install tolmach
    

    Example

    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" 

    Supported languages

    c
    csharp
    fortran
    go
    haskell
    java
    javascript
    lisp
    lua
    objective-c
    perl
    php
    python
    ruby
    rust
    shell
    swift
    vbnet

    Keywords

    none

    install

    npm i tolmach

    Downloadsweekly downloads

    2

    version

    1.0.1

    license

    MIT

    last publish

    collaborators

    • avatar