fn language_for_path(path: &str) -> &str
Extracts the filename from a path and returns the appropriate language identifier.