Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Detect the programming language of a source code
| Date | Stars |
|---|---|
| 2026-07-24 | 904 |
| 2026-07-25 | 904 |
| 2026-07-28 | 904 |
| 2026-07-30 | 904 |
| 2026-08-06 | 904 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Guesslang [](https://github.com/yoeo/guesslang/actions) [](http://guesslang.readthedocs.io/en/latest/?badge=latest) [](https://pypi.python.org/pypi/guesslang)

Guesslang detects the programming language of a given source code:
```bash
echo '
package main
import "fmt"
func main() {
fmt.Println("My mascot is a gopher and Google loves me. Who am I?")
}
' | guesslang
# ⟶ Programming language: Go
```
Guesslang supports `54 programming languages`:
| Languages | | | | |
|------------|----------------|---------------|----------------|--------------|
| `Assembly` | `Batchfile` | `C` | `C#` | `C++` |
| `Clojure` | `CMake` | `COBOL` | `CoffeeScript` | `CSS` |
| `CSV` | `Dart` | `DM` | `Dockerfile` | `Elixir` |
| `Erlang` | `Fortran` | `Go` | `Groovy` | `Haskell` |
| `HTML` | `INI` | `Java` | `JavaScript` | `JSON` |
| `Julia` | `Kotlin` | `Lisp` | `Lua` | `Makefile` |
| `Markdown` | `Matlab` | `Objective-C` | `OCaml` | `Pascal` |
| `Perl` | `PHP` | `PowerShell` | `Prolog` | `Python` |
| `R` | `Ruby` | `Rust` | `Scala` | `Shell` |
| `SQL` | `Swift` | `TeX` | `TOML` | `TypeScript` |
| `Verilog` | `Visual Basic` | `XML` | `YAML` | |
With a guessing **accuracy higher than 90%**.
## Apps powered by Guesslang
#### Microsoft Visual Studio Code, automatic language detection
[Visual Studio Code](https://code.visualstudio.com/)
detects the programming language of the source code
that you paste into the editor
[using Guesslang machine learning model](https://code.visualstudio.com/updates/v1_60#_automatic-language-detection).

#### Chameledit
[Chameledit](https://github.com/yoeo/chameledit) is a simple web-editor
that automatically highlights your code.

##### Other projects...
* [Pasta](https://github.com/yoeo/pasta), the [Slack](https://slack.com)
bot that pretty-pastes source code.
* [GG](https://github.com/yoeo/gg), a silly guessing game.
## Documentation
* Guesslang documentation is available at
https://guesslang.readthedocs.io/en/latest/
* Guesslang language detection explained here
https://guesslang.readthedocs.io/en/latest/contents.html#how-does-guesslang-guess
* Guesslang is based on [Tensorflow](https://github.com/tensorflow/tensorflow)
machine learning framework
## Installation
* Python 3.7+ is required
* Install the latest stable version:
```bash
pip3 install guesslang
```
* or install Guesslang from source code:
```bash
pip3 install .
```
* Windows specific
To run [Tensorflow](https://github.com/tensorflow/tensorflow)
on Microsoft Windows you need to install Visual C++ runtime libraries,
available on [Microsoft website](https://www.microsoft.com/en-us/download/details.aspx?id=53587)
## Guesslang command line
* Show all available options
```bash
guesslang --help
```
* Detect the programming language of ``/etc/bashrc`` configuration file:
```bash
guesslang /etc/bashrc
# ⟶ Programming language: Shell
```
* Detect the programming language of a given text:
```bash
echo '
/** Turn command line arguments to uppercase */
object Main {
def main(args: Array[String]) {
val res = for (a <- args) yield a.toUpperCase
println("Arguments: " + res.toString)
}
}
' | guesslang
# ⟶ Programming language: Scala
```
* Show the detection probabilities for a given source code:
```bash
eExcerpt of 5,745 characters
Read on GitHub123
16
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:6b6859ab231de112, topic:deep-learning, topic:tensorflow