github.com/licensee/licensee ↗

A Ruby Gem to detect under what license a project is distributed.

An animated visualization of licensee/licensee's Git history from August 2014 to February 2021, built by 49 contributors. The codebase reached 3,312 lines, mostly Ruby. The video runs 3 minutes 27 seconds.

Render your own repo

Turn any GitHub repository into a video like this — free sample in seconds.

Visualize your own →

Open this visualization on its own page →

Language

Ruby

Contributors

49

Lines of Code

3,312

From

2014-08-16

To

2021-02-11

About licensee/licensee

Licensee is a Ruby gem that automatically detects the license under which an open-source project is distributed by analyzing license files. It addresses the common challenge of identifying project licenses across large portfolios of software and determining whether license files have been modified or customized from their original text.

The gem uses multiple matching strategies to identify licenses with increasing sophistication. It first checks for explicit copyright notices indicating retained rights, then attempts exact string matching after normalizing whitespace and removing copyright information. When exact matches fail, it employs the Sørensen–Dice coefficient algorithm to calculate similarity percentages between the project's license file and known licenses, allowing it to identify licenses that have been slightly modified or altered.

Licensee can be installed as a standard Ruby gem and used programmatically within other projects or run as a command-line tool. It supports optional Git repository scanning through the rugged gem for analyzing bare repositories without working trees, and provides Docker support for containerized environments. The project includes comprehensive documentation covering usage, customization options, and contribution guidelines.

Share this video