Location: Limassol, Cyprus
Tag: English
Japanese vs. English : Sentence Structure
I am not learning Japanese (just yet), but I still find the diagram above aesthetically pleasing. Â It’s from this article, which discusses the structure of the Japanese sentences versus the English ones.
Morphos – morphological solution in PHP for English and Russian
If you ever had to deal with morphology in English, you probably found one or two libraries to help you out. Â But if you had to do that for Russian, than I’m sure you are missing a few hairs, and the ones that you still have are grayer than they used to be. Â I’ve got some good news for you though, now there is Morphos (GitHub repository).
Morphos is a morphological solution written completely in the PHP language. Supports Russian and English. Provides classes to decline First/Middle/Last names/nouns and generate cardinal numerals.
Just look at this beauty!
var_dump($dec->getForms($user_name, $dec->detectGender($user_name))); /* Will produce something like array(6) { ["nominativus"]=> string(8) "Иван" ["genetivus"]=> string(10) "Ивана" ["dativus"]=> string(10) "Ивану" ["accusative"]=> string(10) "Ивана" ["ablativus"]=> string(12) "Иваном" ["praepositionalis"]=> string(15) "об Иване" } */
Just this alone can make user interfaces and emails so much better. Â But there is more to it than that.
The History of English in 10 Minutes
https://www.youtube.com/watch?v=njJBw2KlIEo