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.

Dialect Survey Results

Dialect Survey Results

This is one of the coolest things on language dialects that I’ve ever seen.  A whole bunch of tiny differences all mapped out across the USA.  Just change the question in the dropdown menu on the left, and look at the map on the right.  Both composite and individual maps are available.

soft drink

 

Via kottke.

Twenty five letters only

Here is my try on this tricky puzzle:

There are 26 letters in the English language, and we need every single one of them. Want proof? Choose a letter and write a blog post without using it. (Feeling really brave? Make it a vowel!)

You see, I only quoted the post for some context. There’s no problem, I think. More so, for someone who’s mother tongue is different.  I come from Russki territories. We use letters which were borrowed from Greece.  We just exploded them from twenty four to thirty three. Possibly, there is our lesson of unneeded letters.  We will survive with more.  We will survive with less. There is no problem.

I’m only trying things out here.  It looks like I might do this forever.

Now, going back.  It’s not difficult. You only need to word thoughts differently.  The use of tools like Internet (World Wide Web) or word lists might help.  Even with the vowels.  I should refer you to the letter frequency resource.  The letter I’m ignoring is the second most used.  (Much less so in this post.)  But I write just fine without it.  It is limiting, tricky even.  However one could get used to it.

Do you think it’s worth the try?  Try.  Let me know in the comments how it goes.

P.S.: The URLs of the links I do not control.

Learn Chinese in 5 minutes

I’ve been looking for this for some time.  I only remembered “sum sing wong”, but I knew there were more.  Today, while on the corporate chat discussing what to order from Chinese for lunch, someone pasted the links to Part 1 and Part 2.  My favorite ones are below:

  • That’s not right : Sum Ting Wong
  • See me ASAP: Kum Hia Nao
  • I thought you were on a diet: Wai Yu Mun Ching
  • Our meeting is scheduled for next week: Wai Yu Kum Nao
  • Give me the money! : Pei Nau
  • Where’s the restroom: Ai Pe Nau
  • Your price is too high: Ai No Bai Dam Ting
  • I am not guilty: Wai Hang Mi
  • Having an early orgasm: Kum Tu Suun
  • Now I understand: Ai See Nau

Share yours in the comments!

P.S.: And if you want to continue along the same line but with pictures, make sure to check out Engrish.

One or three?

While reading through Matt Damon Wikipedia entry on the subject of Jimmy Kimmel, I scrolled further down to his Matt’s personal life, where I found the following sentence:

From 2001 to 2003, he dated Odessa Whitmire, a former personal assistant of Billy Bob Thornton and Ben Affleck.

I know, I know all those jokes about Matt and Ben are getting pretty old now.  But still, the question popped up in my head: is it a single person, as in Odessa Whitmire, who used to work as personal assistant for Billy Bob Thornton and Ben Affleck, or are these three different people, as in Odessa Whitmire, Billy Bob Thornton’s personal assistant, and Ben Affleck?

Before anyone assumes anything, I have to say that:

  1. I don’t care who dates who – that’s their own business.
  2. I have great respect for Matt Daemon, based on many of his movies (I am re-watching the Bourne trilogy at least once a month) and many of his appearances on TV (live shows, talk shows, YouTube interviews, etc).
  3. I have great respect for all those people who made the Wikipedia what it is today.

The above quote looked funny to me probably only because I am not a native English speaker.  That’s all.  Enough with disclaimers – you can now tare me apart and flame me into oblivion.