Skip to content

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

License

Notifications You must be signed in to change notification settings

dayvonjersen/linguist

Folders and files

NameName
Last commit message
Last commit date
Jul 3, 2020
Aug 28, 2023
Oct 22, 2016
Oct 22, 2016
Oct 22, 2016
Feb 6, 2015
Oct 22, 2016
Jul 3, 2020
Jul 3, 2020
Oct 22, 2016
Oct 24, 2016
Oct 22, 2016
Jun 13, 2023
Jun 13, 2023
Jul 3, 2020
Oct 22, 2016

Repository files navigation

linguist

godoc reference

Go port of github linguist.

Many thanks to @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 for 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 which is documented separately

tokenizer | (godoc reference)