Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 772 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 772 Bytes

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.