Skip to content

An implementation of Krippendorff's alpha in TypeScript

License

Notifications You must be signed in to change notification settings

max-schaefer/krippendorff

Repository files navigation

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.

About

An implementation of Krippendorff's alpha in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published