Replace periods with blanks then use 4!:0 to select words and eliminate
numbers and punctuation.

On Wed, Jan 27, 2016 at 5:33 AM, Henry Rich <[email protected]> wrote:

> That's clever.
>
> Henry Rich
>
> On 1/27/2016 12:15 AM, Raul Miller wrote:
>
>> I guess I'd be inclined to do it like this:
>>
>> require'web/gethttp'
>> const=: gethttp 'http://usconstitution.net/const.txt'
>> words=: [: ;: ' '"_`(I.@:= toupper)`]}~@tolower
>>
>>     \:~ (<@#/.~,.~.)words const
>> +---+-----+
>> |727|the  |
>> +---+-----+
>> |495|of   |
>> +---+-----+
>> |306|shall|
>> +---+-----+
>> |264|and  |
>> +---+-----+
>> |202|to   |
>> ...
>>
>> Though of course, it's possible to format that result differently.
>>
>> Thanks,
>>
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to