[Jprogramming] Boxing words
Arie Groeneveld
agroeneveld400 at gmail.com
Thu Dec 28 08:57:23 UTC 2017
A first step can be:
<@(<;._1@:(' '&,));._2 T
with T being:
T=: 0 :0
The cat's collar is laying outside Bill's porch.
)
or
T =: fread 'some text file'
Op 28-12-17 om 07:41 schreef 'Skip Cave' via Programming:
> I have a lot of text that i want to work with, doing word counts, phrase
> counts, etc.
>
> Here's a typical sentence:
>
> The cat's collar is laying outside Bill's porch.
>
> I want to box the words in this sentence using ;: .
>
> ;: 'The cat's collar is laying outside Bill's porch.'
>
> |value error: Bill
>
> | ;: 'The cat's collar is laying outside Bill's porch.'
>
>
> How do I box words with apostrophes in them?
>
>
> Skip
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list