krippendorff
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

krippendorff

An implementation of Krippendorff's alpha, based on the Wikipedia article.

Ratings can be numbers or strings; missing values are represented by undefined.

Installation

npm install krippendorff

Usage

import { alpha } from "krippendorff";

const ratingMatrix = [
  [1, 2, 1], // ratings by first rater
  [1, 1, 1], // ratings by second rater
  [1, 2], // ratings by third rater; note missing rating for third sample
];

console.log(alpha(ratingMatrix)); // 0.41666666666666663

License

This project is licensed under the terms of the MIT open source license. Please refer to LICENSE for the full terms.

Maintainers

Support

This is a side project of mine and is not officially supported. However, if you have questions or feedback, feel free to file an issue and I will do my best to respond.

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i krippendorff

    Weekly Downloads

    45

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    15.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • xiemaisi