```ts
export function wordReverse(line: string): string {
  return line.split(' ').map(word => word.split('').reverse().join('')).join(' ');
}
```