JavaScript (ES6), (削除) 172 (削除ここまで) (削除) 169 (削除ここまで) (削除) 157 (削除ここまで) 150 bytes
Saved 10 bytes thanks to @Neil
x=>x.match(/[\w'*]+|\s+/g).map(y=>y[0]==" "?y[1]:y==`
`?". ":/\*/.test(y,l+=y.match(/\w/g).length)?(l=l%2*10+19,""):l.toString(36,l=9),l=9).join``+"."
Can probably be further improved. Outputs in all lowercase.
ETHproductions
- 50.3k
- 6
- 96
- 241