1

Is there some web page or Unix command line tool where I can paste the text of a license, and it would match it against a database of well-known open source licenses to tell me which one it is?

For example, the SPDX project already has an excellent database, I'm just looking for an easy front-end for this purpose.

  • 1
    The usual problem isn't identifying the licence given the text, it's finding some kind of licence declaration in the first place. Do you have working examples of licences which are clear, but you can't tell which licence they are? – MadHatter supports Monica Jul 21 at 9:05
  • Thank you for asking. I can tell what they are, but to do so I have to manually read word-for-word and cross-check with license templates (or use standard diff which is clumsy for this task). I can't reliably tell the difference between the various permissive licenses (MIT, BSD, etc.) from memory without manually comparing to a template. When incorporating 3rd party code into my own project I like to compare the license texts word-for-word to make sure there are no surprises. So I can already do everything I need but it's slow and error-prone. – Lassi Jul 21 at 10:06
  • I repeat my question: can you give us a real-world example of code which contains a clear licence that cannot be identified by simple inspection? – MadHatter supports Monica Jul 21 at 10:08
  • 4
    GitHub uses the Licensee tool (written in Ruby) to determine project licenses. – amon Jul 21 at 10:36
  • 2
    @amon I guess this should be an Answer. – Brandin Jul 22 at 5:17
3

In order that this question can have an answer accepted, but given that Amon doesn't seem minded to write it, I'm repeating his/her answer verbatim as community wiki. Amon, if you do want to write it up, flag me or a mod to remove this answer.

GitHub uses the licensee tool, which is written in Ruby, to determine project licences.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.