#sentence #check #followed #string #hawk #tuah #hailey

is_hawk_tuah

Check if the sentence contains Hawk Tuah

2 releases

0.1.1 Feb 22, 2025
0.1.0 Feb 22, 2025

#2 in #followed

Download history 230/week @ 2025-02-19 40/week @ 2025-02-26

270 downloads per month

Unlicense

3KB

is_hawk_tuah

This Rust crate provides a single function, is_hawk_tuah, which checks if a string contains a hawk, followed by a too or a two.

Inspired by the Hailey Welch, and the legendary is-even library.

Usage

use is_hawk_tuah::is_hawk_tuah;

assert!(is_hawk_tuah("hawk too").unwrap());
assert!(is_hawk_tuah("hawk two").unwrap());
assert!(is_hawk_tuah("hawk to").unwrap());
assert!(is_hawk_tuah("hawk tuah").unwrap());

Dependencies

~2–3MB
~53K SLoC