dale-chall
The New Dale-Chall (1995) list of easy American-English words, as static Rust data.
Readability tools use this list to decide whether a word is familiar when scoring text. This crate ships the data only. It does not compute the Dale-Chall formula.
The crate is #![no_std] and has no dependencies. The minimum supported Rust
version is 1.65.
Install
[]
= "0.1"
Use
use DALE_CHALL;
assert_eq!;
assert_eq!;
assert!;
assert!;
Data
DALE_CHALL is a &'static [&'static str] of 2942 words. The list is sorted
ascending by byte order and holds no duplicates. Every entry is lowercase ASCII.
Nine words contain a hyphen and 47 contain a straight apostrophe (', U+0027).
The slice is sorted, so check membership with
DALE_CHALL.binary_search(&word).is_ok(). The check is exact and case
sensitive. The data is already lowercase, so lowercase the query first if the
input may carry other casing.
License
Licensed under the MIT license.