use super::Language;
use super::parse_lowercase_word_list;
use rustc_hash::FxHashSet;
use std::sync::LazyLock;
#[derive(Debug, Clone)]
pub struct Punjabi {}
static ABBREVIATIONS: LazyLock<FxHashSet<String>> = LazyLock::new(|| {
parse_lowercase_word_list([
include_str!("./abbrev/pa.txt"),
include_str!("./abbrev/en.txt"),
])
});
impl Language for Punjabi {
fn get_abbreviations(&self) -> &FxHashSet<String> {
&ABBREVIATIONS
}
}
#[cfg(test)]
mod tests {
use crate::languages::tests::run_language_tests;
use super::*;
#[test]
fn test_segment() {
run_language_tests(Punjabi {}, "tests/pa.txt");
}
}