Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming language detection in PHP

Tags:

php

I need to detect which programming language is used in a code snippet, there is any library to do this?

I already read this Detecting programming language from a snippet, but I rather use a tested and working library.

like image 250
Franco Avatar asked Nov 05 '22 15:11

Franco


1 Answers

The link you posted is exactly what you need. That's only a couple hours of programming time. Otherwise, try googling for "bayesian spam filtering php" - the first result may be what you're looking for: http://www.phpclasses.org/browse/package/4236.html

like image 89
Jan K. Avatar answered Nov 15 '22 12:11

Jan K.