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: 2 months ago
JSON representation
Detect programming language used in git repository. Go port of github linguist.
- Host: GitHub
- URL: https://github.com/dayvonjersen/linguist
- Owner: dayvonjersen
- License: apache-2.0
- Created: 2015-12-08T10:08:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-05T02:10:13.000Z (11 months ago)
- Last Synced: 2024-06-20T09:19:34.459Z (4 months ago)
- Topics: bayes-classifier, github-linguist, golang, language-detection, linguist
- Language: Go
- Homepage:
- Size: 15.3 MB
- Stars: 72
- Watchers: 4
- Forks: 9
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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))