だから私はRubyでコーディングしていて、いくつかの文があります:
The sky above the port was the color of television, tuned to a dead channel. "It's not like I'm using," Case heard someone say, as he shouldered his way through the crowd around the door of the Chat. "It's like my body's developed this massive drug deficiency." It was a Sprawl voice and a Sprawl joke. The Chatsubo was a bar for professional expatriates; you could drink there for a week and never hear two words in Japanese.
そして、構造を変更せずに段落内のすべての単語を変更する必要があります。私の当初のアイデアは、空白を分割してから再結合することでしたが、それに関する問題は、句読点も取得することです。単語がわかるように分割すると、適切な句読点がわからないため、再結合するのが困難になります。
従来の分割、マップ、結合コンボよりもこれを行うためのより良い方法はありますか?または、再参加するのが簡単な、ちょうど良い分割正規表現でしょうか?