From 762b389721a44c37cab5115d1a841f45824f3e59 Mon Sep 17 00:00:00 2001 From: Ted Nyman Date: Sun, 10 Nov 2013 17:55:17 -0800 Subject: [PATCH] Minor README updates --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f17de17b..76948111 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,10 @@ We typically run on a pre-release version of Pygments, [pygments.rb](https://git ### Stats -The Language Graph you see on every repository is built by aggregating the languages of all repo's blobs. The top language in the graph determines the project's primary language. Collectively, these stats make up the [Top Languages](https://github.com/languages) page. +The Language Graph you see on every repository is built by aggregating the languages of each file in that repository. +The top language in the graph determines the project's primary language. Collectively, these stats make up the [Top Languages](https://github.com/languages) page. -The repository stats API can be used on a directory: +The repository stats API, accessed through `#languages`, can be used on a directory: ```ruby project = Linguist::Repository.from_directory(".") @@ -41,7 +42,7 @@ project.language.name #=> "Ruby" project.languages #=> { "Ruby" => 0.98, "Shell" => 0.02 } ``` -These stats are also printed out by the binary. Try running `linguist` on itself: +These stats are also printed out by the `linguist` binary. Try running `linguist` on itself: $ bundle exec linguist lib/ 100% Ruby