use std::path::PathBuf;
pub fn to_module_name<P: Into<PathBuf>>(file_name: P) -> String {
file_name
.into()
.file_stem() .unwrap()
.to_string_lossy() .to_lowercase() .replace(|c: char| !c.is_alphanumeric(), "_") }
pub fn to_dialect_name<P: Into<PathBuf>>(file_name: P) -> String {
file_name
.into()
.file_stem() .unwrap()
.to_string_lossy()
.to_string()
}