<commit_before># Colorname

[![Build Status](https://travis-ci.com/celilileri/colorname.svg?token=qSHr3MpL5P1vaDoy2yPE&branch=master)](https://travis-ci.com/celilileri/colorname)

Ruby Gem for decide name of a given color.

## Installation

### Easy Gem Installation

```shell
$ gem install colorname
```
### Gemfile  Integration

Add this line to your application's Gemfile:

```ruby
gem 'colorname'
```

And then execute:
```
$ bundle
```
## Usage

```ruby
Colorname.find 'f0f8ff'                    # [:aliceblue]

Colorname.find '#00ffff'                   # [:aqua, :cyan]

Colorname.find 143, 188, 143               # [:darkseagreen]

Colorname.find Color::RGB.new(255, 0, 255) # [:fuchsia, :magenta]

Colorname.find_by_image (url | path)       # [:names_of_most_dominant_colors]
```

To find dominant base color name

```ruby
Colorname.base '32cd32'                    # [:green]
<commit_msg>Add new feature's example<commit_after># Colorname

[![Build Status](https://travis-ci.com/celilileri/colorname.svg?token=<PASSWORD>&branch=master)](https://travis-ci.com/celilileri/colorname)

Ruby Gem for decide name of a given color.

## Installation

### Easy Gem Installation

```shell
$ gem install colorname
```
### Gemfile  Integration

Add this line to your application's Gemfile:

```ruby
gem 'colorname'
```

And then execute:
```
$ bundle
```
## Usage

```ruby
Colorname.find 'f0f8ff'                    # [:aliceblue]

Colorname.find '#00ffff'                   # [:aqua, :cyan]

Colorname.find 143, 188, 143               # [:darkseagreen]

Colorname.find Color::RGB.new(255, 0, 255) # [:fuchsia, :magenta]
```

To find names of most dominant colors of and image

```ruby
Colorname.find_by_image (url_or_path)       # [:names_of_most_dominant_colors]
Colorname.findbyimage (url_or_path)         # [:names_of_most_dominant_colors]

```


To find dominant base color name

```ruby
Colorname.base '32cd32'                    # [:green]

{'fraction_non_alphanumeric': 0.14131551901336073, 'fraction_numerical': 0.02672147995889003, 'mean_word_length': 3.486175115207373, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1579936', 'n_tokens_mistral': 754, 'n_tokens_neox': 699, 'n_words': 158}