<commit_before>Transliterator [![Build Status](https://travis-ci.org/sadikoff/Transliterator.svg)](http://travis-ci.org/sadikoff/Transliterator)
==============

Transliterator is a PHP library for text transliteration.

Transliteration is a subset of the science of hermeneutics. It is a form of translation, and is the practice of converting a text from one script into another.

Basic Usage
-----------

```php
<?php
$transliterator = new Transliterator(Settings::LANG_RU);
$transliterator->cyr2Lat('Русский');                        // 'Russkij'
$transliterator->lat2Cyr('Russkij');                        // 'Русский'

$transliterator->setLang(Settings::LANG_SR);
$transliterator->cyr2Lat('Ниш');                            // 'Niš'
$transliterator->lat2Cyr('Niš');                            // 'Ниш'
```

Languages and Transliteration Systems Supported
-----------------------------------------------

- [Russian](http://en.wikipedia.org/wiki/Romanization_of_Russian)
    * ISO R 9 1968
    * GOST 1971 (GOST 16876-71 table 2)
    * GOST 1983
    * GOST 2000 (GOST 7.79-2000, system B; ISO (1995))
    * GOST 2002
    * ALA LC
    * British Standard
    * BGN PCGN
    * Passport 2003
- [Serbian](http://en.wikipedia.org/wiki/Serbian_Cyrillic_alphabet)
- [Macedonian](http://en.wikipedia.org/wiki/Romanization_of_Macedonian)
    * ISO 9 1995
    * BGN PCGN
    * ISO 9 R 1968 National Academy<commit_msg>Fixed Readme<commit_after>Transliterator [![Build Status](https://travis-ci.org/sadikoff/Transliterator.svg)](http://travis-ci.org/sadikoff/Transliterator)
==============

Transliterator is a PHP library for text transliteration.

Transliteration is a subset of the science of hermeneutics. It is a form of translation, and is the practice of converting a text from one script into another.

Basic Usage
-----------

```php
<?php
$transliterator = new Transliterator(Settings::LANG_RU);
$transliterator->cyr2Lat('Русский');                        // 'Russkij'
$transliterator->lat2Cyr('Russkij');                        // 'Русский'

$transliterator->setLang(Settings::LANG_SR);
$transliterator->cyr2Lat('Ниш');                            // 'Niš'
$transliterator->lat2Cyr('Niš');                            // 'Ниш'
```

Languages and Transliteration Systems Supported
-----------------------------------------------

- [Russian](http://en.wikipedia.org/wiki/Romanization_of_Russian)
    * ISO R 9 1968
    * GOST 1971 (GOST 16876-71 table 2)
    * GOST 1983
    * GOST 2000 (GOST 7.79-2000, system B; ISO (1995))
    * GOST 2002
    * ALA LC
    * British Standard
    * BGN PCGN
    * Passport 1997
    * Passport 2010
- [Serbian](http://en.wikipedia.org/wiki/Serbian_Cyrillic_alphabet)
- [Macedonian](http://en.wikipedia.org/wiki/Romanization_of_Macedonian)
    * ISO 9 1995
    * BGN PCGN
    * ISO 9 R 1968 National Academy
{'fraction_non_alphanumeric': 0.1644945403311025, 'fraction_numerical': 0.042268404367735116, 'mean_word_length': 2.5723270440251573, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2029768', 'n_tokens_mistral': 1019, 'n_tokens_neox': 878, 'n_words': 210}