I've been searching around a little bit for statistics on how many projects are licensed with a licence file in their repository. I found this article with a graph:
The spike between 2013 and 2014 can largely be attributed to the unveiling of choosealicense.com by GitHub.
Quoting from the article:
The new Licenses API returns metadata about popular open source licenses and can detect a project’s license from the repository’s LICENSE file. Developers are welcome to preview the API while it’s still under development. Ultimately, GitHub is aiming to use the API to collect and provide more information about the open source licenses in use on the site, as well as the projects that are using them.
As far as I understand, the way these statistics work is the API queries repositories for a License file, and sorts that out by attempting to find a match with an open source licence.
Looking back, I found an answer of mine to a question on this site. It highlighted whether or not a plugin could be use, which was basically whether or not it had a licence. Looking into the repository for my answer, I discovered that there was no "Licence" file, but rather a tiny little thing in the Readme:
License: GPLv3.
That was the only mention. I later submitted an issue and a pull request adding a licence file. I got this response:
There's no legal requirement to include a copy of it - but its better to, in case someone doesn't know what GPL is. Thank you for the PR.
Assuming the first statement is correct, the statistics in the graph above could largely be inaccurate (Of course, if the statement is not correct, then the statistics would obviously be correct).
This makes me wonder: if a project does not need a licence file, and a simple mention in the Readme is enough, then how many projects are actually licensed on GitHub? Has there been any data or research into this?