# language-classifier

> Programming language classifier

Latest version **0.0.1** (published 2012-11-20) · 0 weekly downloads

## Install

```sh
npm install language-classifier
pnpm add language-classifier
yarn add language-classifier
bun add language-classifier
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-11-20 |
| First published | 2012-11-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TJ Holowaychuk |
| Maintainers | tjholowaychuk |

## Links

- npm: https://www.npmjs.com/package/language-classifier
- npm.io page: https://npm.io/package/language-classifier

## Dependencies (1)

- [classifier](https://npm.io/package/classifier.md) ~0.1.0

## Recent versions

- 0.0.1 (latest) — 2012-11-20

## README

# language-classifier

  Programming language classifier based on harthur's Bayesian [classifier](https://github.com/harthur/classifier) module.

## Installation

    $ npm install language-classifier

## Example

```js
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

---
_Source: https://npm.io/package/language-classifier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
