5

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.

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

I just wanted to know if it already exists before starting to code, because I'm short of time. I guess I'll have to do it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.