Explain type extraction from filename