use lindera_dictionary::dictionary::Dictionary;
pub enum JPreprocessDictionaryKind {
#[cfg(feature = "naist-jdic")]
NaistJdic,
}
impl JPreprocessDictionaryKind {
pub(crate) fn load(&self) -> Dictionary {
match &self {
#[cfg(feature = "naist-jdic")]
Self::NaistJdic => jpreprocess_naist_jdic::lindera::load().unwrap(),
#[allow(unreachable_patterns)]
_ => unreachable!(),
}
}
}