Skip to content

dimadin/serbian-variants

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Serbian_Variants

Serbian_Variants is a PHP class used to get all variants of a string in Serbian language. For example, string "Ђоковић" can also be written as "Đoković", "Djoković", "Djokovic", or some variation of those.

Using

Call class with string you want to get variant of.

$object = new Serbian_Variants( 'djokovic' );

You will get all variants in an array with variants property of object.

$object->variants;

There is also original string in a original_term property.

$object->original_term;

About

Get all variants of word for Serbian language.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages