Now I needed a way to change what the language tag said. Unfortunately, Github doesn’t give you a good way to do this. The Linguist library does give you options to ignore files from third parties though. Here’s how you do it:
- Create a .gitignore file at the root of your local repository.
- Inside the .gitattributes file, type a path to the containing folder holding your third-party code. At the end of the path type “/*”.
- After the path type “linguist-vendored”. Here is the example from the Linguist troubleshooting section:
Save your file, commit it and push it to your remote Github repository.
This takes the third-party code out of consideration for the Linguist algorithm. Once you refresh your Github page the language tag should be different. If the language still doesn’t match what you think it should, try adding the “linguist-vendored” tag to other folders to reduce the types of files Linguist searches.