This is possible to do, GitHub's API provides access to the language breakdown of a given repository.
It could probably be done through some kind of ruleset file we go through that maps conditions to directories. I'll think about it, but I'm not sure there's enough demand. If you do this in fork, I'd be willing to take it.