From 0b2fcbf28bac1176ba5b076665e795cd75660ea1 Mon Sep 17 00:00:00 2001 From: Llywelwyn Date: Sat, 9 Sep 2023 10:12:33 +0100 Subject: [PATCH] updates readme with wip status --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76e729c..8abc238 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ # inflect-rs -inflect-rs is a Rust port of the Python inflect library, used to generate plurals, ordinals, indefinite articles, and to convert numbers to words. \ No newline at end of file +inflect-rs is a Rust port of the Python inflect library, used to generate plurals, ordinals, indefinite articles, and to convert numbers to words. + +```rust +fn test_si_pron() { + assert_eq!("him", get_si_pron("acc", "them", Some("masculine"))); + assert_eq!("her", get_si_pron("acc", "them", Some("feminine"))); + assert_eq!("it", get_si_pron("acc", "them", Some("neuter"))); + assert_eq!("you", get_si_pron("acc", "you", None)); + assert_eq!("themselves", get_si_pron("acc", "itself", None)); + + assert_ne!("him", get_si_pron("acc", "them", Some("feminine"))); + assert_ne!("her", get_si_pron("acc", "them", Some("masculine"))); +} +``` + +inflect-rs is currently in-development, but is nearing completition, and so has been published for the sake of name-reservation. The first stable version should be here very soon. \ No newline at end of file