Language detection as discussed in the link is per-file. I don't think overriding individual files makes sense since it's likely to be more trouble than it's worth. But I can understand the desire to change the detected language of the project.
.rb=RealBasic .m=Mercury .pl=Prolog .js=SomeCrapOrOther …