arXiv · 1106.4064
Algorithmic Programming Language Identification
Abstract
Motivated by the amount of code that goes unidentified on the web, we introduce a practical method for algorithmically identifying the programming language of source code. Our work is based on supervised learning and intelligent statistical features. We also explored, but abandoned, a grammatical approach. In testing, our implementation greatly outperforms that of an existing tool that relies on a Bayesian classifier. Code is written in Python and available under an MIT license.
Explore related subjects
Keep this discovery
David Klein, Kyle Murray, Simon Weber. 2011-06-21. Algorithmic Programming Language Identification. https://arxiv.org/abs/1106.4064
Cite the original work for its findings. Save a collection to share your selection of sources.