<commit_before># arius/number-formatter
[![Build Status](https://travis-ci.org/arius86/number-formatter.svg?branch=master)](https://travis-ci.org/arius86/number-formatter)
[![Coverage Status](https://coveralls.io/repos/arius86/number-formatter/badge.svg?branch=master)](https://coveralls.io/r/arius86/number-formatter?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/87742c9a-446c-4635-9a9a-b277405cb3a1/mini.png)](https://insight.sensiolabs.com/projects/87742c9a-446c-4635-9a9a-b277405cb3a1)

PHP NumberFormatter extended with additional ordinals not supported by ICU.

**Feel free to add more languages. Fork, pull request and contribute!**

Number generator from Lern-Online.net
======
You can prove or check the values in my number generator.
Put a number with max 15 characters in the input box and the script will generate with AJAX immediately the numeral of the inserted number.

1. polish ordinal numerals (and cardinal numbers from ICU)
----------------------------
http://www.lern-online.net/polnisch/schreiben/zahlen/zahlengenerator/

2. russian ordinal numerals (and cardinal numbers from ICU)
----------------------------
http://www.lern-online.net/russisch/schreiben/zahlen/zahlengenerator/

How to
======

1. composer.json
----------------------------

```json
{
     "require": {
        "arius/number-formatter": "1.*"
     }
}
```

2. PHP
-------

Use in code just like [NumberFormatter class](http://php.net/manual/en/class.numberformatter.php).

```php
use Arius\NumberFormatter;

$formatter = new NumberFormatter('pl', NumberFormatter::SPELLOUT);
$formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal");

$formatter->format(123);
```

Additional supported ordinals
=============================

1. Polish (pl)
--------------

- spellout-ordinal
- spellout-ordinal-feminine
- spellout-ordinal-masculine
- spellout-ordinal-neuter

<commit_msg>add russian as supported ordinal language with all combinations<commit_after># arius/number-formatter
[![Build Status](https://travis-ci.org/arius86/number-formatter.svg?branch=master)](https://travis-ci.org/arius86/number-formatter)
[![Coverage Status](https://coveralls.io/repos/arius86/number-formatter/badge.svg?branch=master)](https://coveralls.io/r/arius86/number-formatter?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/87742c9a-446c-4635-9a9a-b277405cb3a1/mini.png)](https://insight.sensiolabs.com/projects/87742c9a-446c-4635-9a9a-b277405cb3a1)

PHP NumberFormatter extended with additional ordinals not supported by ICU.

**Feel free to add more languages. Fork, pull request and contribute!**

Number generator from Lern-Online.net
======
You can prove or check the values in my number generator.
Put a number with max 15 characters in the input box and the script will generate with AJAX immediately the numeral of the inserted number.

1. polish ordinal numerals (and cardinal numbers from ICU)
----------------------------
http://www.lern-online.net/polnisch/schreiben/zahlen/zahlengenerator/

2. russian ordinal numerals (and cardinal numbers from ICU)
----------------------------
http://www.lern-online.net/russisch/schreiben/zahlen/zahlengenerator/

How to
======

1. composer.json
----------------------------

```json
{
     "require": {
        "arius/number-formatter": "1.*"
     }
}
```

2. PHP
-------

Use in code just like [NumberFormatter class](http://php.net/manual/en/class.numberformatter.php).

```php
use Arius\NumberFormatter;

$formatter = new NumberFormatter('pl', NumberFormatter::SPELLOUT);
$formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal");

$formatter->format(123);
```

Additional supported ordinals
=============================

1. Polish (pl)
--------------

- spellout-ordinal
- spellout-ordinal-feminine
- spellout-ordinal-masculine
- spellout-ordinal-neuter
- 
2. Russian (ru)
--------------

- spellout-ordinal
- spellout-ordinal-feminine
- spellout-ordinal-masculine
- spellout-ordinal-neuter
- spellout-ordinal-plural (plural isn't part of ICU in all languages)


{'fraction_non_alphanumeric': 0.19111545032950938, 'fraction_numerical': 0.031974615572370024, 'mean_word_length': 3.7651162790697676, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, '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': '1476271', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1285, 'n_words': 274}