First, grab the code for the dyadic ;: example at http://www.jsoftware.com/help/dictionary/d332.htm and get it working as a loadable script.
Second, find the line that says: mj=: 8 (a.i.'''')}mj NB. Q quote And replace that 8 with a 2. You should be able to take it from there. You'll probably want to do some name cleanup or re-organization also - I do not think I'd want x as a permanent name in my code. Good luck, -- Raul On Thu, Dec 28, 2017 at 1:41 AM, 'Skip Cave' via Programming <[email protected]> wrote: > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
