Update language.rb

the logic was wrong. now it is better.