JSPM

language-classifier

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1345
    • Score
      100M100P100Q143332F

    Programming language classifier

    Package Exports

    • language-classifier

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (language-classifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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