Giter Site home page Giter Site logo

ukrainian-word-stress-dictionary's Introduction

Словник наголосів української мови

Note Щоби проставити наголоси в тексті, скористайтся пакетом ukrainian-word-stress. Майже напевно вам потрібен саме цей пакет, а не словник.

English version

Цей словник подає наголоси для 2,931,496 словоформ та словосполук.

Наголос позначається Unicode символом COMBINING ACUTE ACCENT (U+0301). Цей символ ставиться після наголошеної голосної. Наприклад, слово ма́ма складається з такої послідовності символів:

>>> chars = ['м', 'а', '\u0301', 'м', 'а']
>>> print("".join(chars))
ма́ма

У словах, в яких можливий подвійний наголос, буде два таких символи (по́ми́лка).

Словник наголосів сформовано на основі "Словників України" Українського мовно-інформаційного фонду НАН України.

ukrainian-word-stress-dictionary's People

Contributors

dchaplinsky avatar mariana-scorp avatar osyvokon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ukrainian-word-stress-dictionary's Issues

Латинські літери в словах

У файлі багато некириличних літер. Нижче я приведу приклад у вигляди: рядок літери через кому слово, де є помилки.

71782     n, e, w   Ахта́шnew
92228     c         ба́нcурі
101268    n, e, w   башnew
146771    n, e, w   Бовти́шnew
149023    n, e, w   Богу́шnew
218971    n, e, w   Ве́нишnew
282025    n, e, w   Виро́шnew
670975    n, e, w   Є́зучnew
672363    n, e, w   єрала́шnew
840740    n, e, w   Звара́шnew
939975    n, e, w   Ірти́шnew
963285    n, e, w   Карага́шnew
978506    n, e, w   Кварку́шnew
981977    n, e, w   Келера́шnew
1082994   n, e, w   Ку́мрочnew
1089619   n, e, w   Кутла́шnew
1147811   n, e, w   м'яку́шnew
1168970   n, e, w   Марми́шnew
1588037   n, e, w   п'я́дичnew
1591093   6         П6тік-на-Дубе́цькому
1685179   n, e, w   Пере́ско́чnew
1770233   n, e, w   Пінчnew
2133375   n, e, w   Пру́бишnew
2325362   n, e, w   Са́мошnew
2358304   n, e, w   Сива́шnew
2373632   n, e, w   сіда́чnew
2494568   n, e, w   стрека́чnew
2497001   n, e, w   Стришnew
2546390   n, e, w   Те́кучnew
2551617   n, e, w   Теме́шnew
2621339   n, e, w   тушnew
2671718   n, e, w   У́річnew
2738398   n, e, w   хала́шnew
2774423   n, e, w   хрящnew
2803766   c         ча́cкі
2812582   n, e, w   Чернишńew
2824282   n, e, w   Чорни́шnew
2861295   n, e, w   Шишnew

Я використовував наступний скрипт на NodeJS для знаходження помилок:

const fs = require(`fs`)

let stress = fs.readFileSync(`./stress.txt`, `utf-8`).split(`\n`),
    out = "```\n"

stress.forEach((x, i) => {
    if (/\w+/.test(x)) {
        out +=
            (i + 1).toString().padEnd(10) +
            x.match(/\w/g).join(", ").padEnd(10) +
            x.trim() +
            `\n`
    }
})

out += "```"

fs.writeFileSync("out.md", out)

Гарного дня!

Багато слів немає в словнику.

Багато слів немає в словнику.

Наприклад, немає слова "хутко". Хоча є інші, де логіка?
хутка́
хутке́
хутки́й
хутки́м
хутки́ми
хутки́х
хуткі́
хуткі́й
хуткі́м
хуткі́ша
хуткі́ше
хуткі́ший
хуткі́шим
хуткі́шими
хуткі́ших
хуткі́ші
хуткі́шій
хуткі́шім
хуткі́шого
хуткі́шої
хуткі́шому
хуткі́шою
хуткі́шу
хутко́го
хутко́ї
хутко́му
хутко́ю
хутку́

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.