Skip to content

Wrong declension of word “лёд” #8

@shoorick

Description

@shoorick

Letter Ё in word «лёд» must be replaced with soft sign Ь, but similar words must keep this letter:

  • лёд → льда
  • гололёд → гололёда
$ perl -CS -MLingua::RU::Inflect=:all -ne 'chomp; for my $case (NOMINATIVE .. PREPOSITIONAL) { print join(" ", inflect_given_name($case, $_, "", "")), "\t" } print "\n"'
Лёд
Лёд  	Лёда  	Лёду  	Лёда  	Лёдом  	Лёде  	
Мёд
Мёд  	Мёда  	Мёду  	Мёда  	Мёдом  	Мёде  	
Гололёд
Гололёд  	Гололёда  	Гололёду  	Гололёда  	Гололёдом  	Гололёде  	

How to solve

Add exception to declension rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions