I have imported Alice in Wonderland into Mathematica. I have made a list of the sentences and further divided them into words. Now suppose, nominally, I have the following list:
l={{"alice's", "adventures", "in", "wonderland", "lewis", "carroll",
"the", "millennium", "fulcrum", "edition", "3.0", "chapter", "i",
"down", "rabbit-hole", "alice", "was", "beginning", "to", "get",
"very", "tired", "of", "sitting", "by", "her", "sister", "on",
"bank", "and", "having", "nothing", "do", "once", "or", "twice",
"she", "had", "peeped", "into", "book", "reading", "but", "it",
"no", "pictures", "conversations", "what", "is", "use", "a",
"thought", "without", "conversation", "so", "considering", "own",
"mind", "as", "well", "could", "for", "hot", "day", "made", "feel",
"sleepy", "stupid", "whether", "pleasure", "making", "daisy-chain",
"would", "be", "worth", "trouble", "getting", "up", "picking",
"daisies", "when", "suddenly", "white", "rabbit", "with", "pink",
"eyes", "ran", "close"}, {"there", "was", "nothing", "so", "very",
"remarkable", "in", "that", "nor", "did", "alice", "think", "it",
"much", "out", "of", "the", "way", "to", "hear", "rabbit", "say",
"itself", "oh", "dear"}}
How can I go through each elements and delete those words that contain "'"
, "-"
or they are number like 3.0
The outcome should look like:
{{"adventures", "in", "wonderland", "lewis", "carroll",
"the", "millennium", "fulcrum", "edition", "chapter", "i",
"down", "alice", "was", "beginning", "to", "get",
"very", "tired", "of", "sitting", "by", "her", "sister", "on",
"bank", "and", "having", "nothing", "do", "once", "or", "twice",
"she", "had", "peeped", "into", "book", "reading", "but", "it",
"no", "pictures", "conversations", "what", "is", "use", "a",
"thought", "without", "conversation", "so", "considering", "own",
"mind", "as", "well", "could", "for", "hot", "day", "made", "feel",
"sleepy", "stupid", "whether", "pleasure", "making",
"would", "be", "worth", "trouble", "getting", "up", "picking",
"daisies", "when", "suddenly", "white", "rabbit", "with", "pink",
"eyes", "ran", "close"}, {"there", "was", "nothing", "so", "very",
"remarkable", "in", "that", "nor", "did", "alice", "think", "it",
"much", "out", "of", "the", "way", "to", "hear", "rabbit", "say",
"itself", "oh", "dear"}}
I have tried DeleteCases[l,_?ContainsAll[{"'"}]]
yet it did not work.
StringContainsQ
$\endgroup$Select[LetterQ] /@ l
$\endgroup$