improve regexp for detecting slug
language