Skip to content

shirakaba/pitch-accent

Pitch Accent

A library to predict pitch accent in Japanese.

Usage

For users

Installation:

yarn install pitch-accent

Usage:

import { solve } from "pitch-accent";

solve([
  { surface: 'シン', pos: 'noun', accent: 1 },
  { surface: 'タマネギ', pos: 'noun', accent: 3 },
])
// 5

solve([
  { surface: 'シン', pos: 'noun', accent: 1 },
  { surface: 'ヨコハマ', pos: 'noun', accent: 0 },
]);
// 3

For contributors

# Install deps
yarn install

# Run
yarn start

Legal

pitch-accent is copyrighted free software by Jamie Birch, and is released under any of the BSD, LGPL, or GPL licences (see the files LICENCE-BSD.txt, LICENCE-LGPL.txt, and LICENCE-GPL.txt, respectively).

See sources.md for source data used.

About

Predict pitch accent in Japanese

Resources

License

BSD-3-Clause and 2 other licenses found

Licenses found

BSD-3-Clause
LICENCE-BSD.txt
GPL-2.0
LICENCE-GPL.txt
LGPL-2.1
LICENCE-LGPL.txt

Stars

Watchers

Forks

Releases

No releases published

Packages