GitHub appears to directly support this functionality https://github.com/github/linguist#documentation which I found from this discussion: https://github.com/github/linguist/issues/137