def wind_shear(shear: str, unit_alt: str = '<STR_LIT>', unit_wind: str = '<STR_LIT>', spoken: bool = False) -> str:
if not shear or '<STR_LIT>' not in shear or '<STR_LIT:/>' not in shear:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>shear = shear[<NUM_LIT:2>:].rstrip(unit_wind.upper()).split('<STR_LIT:/>')  <EOL>wdir = core.spoken_number(shear[<NUM_LIT:1>][:<NUM_LIT:3>]) if spoken else shear[<NUM_LIT:1>][:<NUM_LIT:3>]<EOL>return f'<STR_LIT>'<EOL>
Translate wind shear into a readable string

Ex: Wind shear 2000ft from 140 at 30kt