Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/dayvonjersen/linguist

Detect programming language used in git repository. Go port of github linguist.
https://github.com/dayvonjersen/linguist

bayes-classifier github-linguist golang language-detection linguist

Last synced: 3 months ago
JSON representation

Detect programming language used in git repository. Go port of github linguist.

Lists

README

        

# linguist

[![godoc reference](https://godoc.org/github.com/dayvonjersen/linguist?status.png)](https://godoc.org/github.com/dayvonjersen/linguist)

Go port of [github linguist](https://github.com/github/linguist).

Many thanks to [@petermattis](https://github.com/petermattis) for his initial work in laying the groundwork of creating this project, and especially for suggesting the use of naive Bayesian classification.

Thanks also to [@jbrukh](https://github.com/jbrukh) for [github.com/jbrukh/bayesian](https://github.com/jbrukh/bayesian)

# install

### prerequisites:

```
go get github.com/jteeuwen/go-bindata/go-bindata
```

```
mkdir -p $GOPATH/src/github.com/dayvonjersen/linguist
git clone --depth=1 https://github.com/dayvonjersen/linguist $GOPATH/src/github.com/dayvonjersen/linguist
go get -d github.com/dayvonjersen/linguist
cd $GOPATH/src/github.com/dayvonjersen/linguist
make
l
```

## see also

[command-line reference implentation](cmd/l) which is documented separately

[tokenizer](tokenizer/tokenizer.go) | ([godoc reference](https://godoc.org/github.com/dayvonjersen/linguist/tokenizer))