I have the following boxed data:

ex1=. <'This is Skip''s test. Testing one, two, three. Count 3, 2, 1.'

​ ​
ex1

┌────────────────────────────────────────────────────────────┐

│This is Skip's test. Testing one, two, three. Count 3, 2, 1.│

└────────────────────────────────────────────────────────────┘

I want to build a verb that will separate this boxed text data into
sentences.


ex2=. (<'This is Skip''s test.'),(<'Testing one, two, three.'),(<'Count 3,
2, 1.')

ex2

┌────────────────────┬────────────────────────┬──────────────┐

│This is Skip's test.│Testing one, two, three.│Count 3, 2, 1.│

└────────────────────┴────────────────────────┴──────────────┘

I also want to get rid of all punctuation and caps:

ex3=. (<'this is skips test'),(<'testing one two three'),(<'count 3 2 1')

ex3

┌──────────────────┬─────────────────────┬───────────┐

│this is skips test│testing one two three│count 3 2 1│

└──────────────────┴─────────────────────┴───────────┘

What is a reasonable J verb to do this separation and cleanup?

​Skip​

Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to