How can I count letters and words in the following "text", by using
LetterCounts
and WordCount
?
text = {"რომელმან", "შექმნა", "სამყარო", "ძალითა", "მით", "ძლიერითა",
"ზეგარდმო", "არსნი", "სულითა", "ყვნა", "ზეცით", "მონაბერითა",
"ჩვენ", "კაცთა", "მოგვცა", "ქვეყანა", "გვაქვს", "უთვალავი",
"ფერითა", "მისგან", "არს", "ყოვლი", "ხელმწიფე", "სახითა", "მის",
"მიერითა"}
I tried:
LetterCounts[text]
WordCount[text]
but that doesn't work.
When I remove the quotes from text
(by hand), then WordCount
works, but LetterCounts
still doesn't.
LetterCounts[StringRiffle[text]]
; as noted in the docs, you need to give a string and not a list of strings. $\endgroup$LetterCounts
andWordCount
want a single string, not a list, as its argument. $\endgroup$LetterCounts[StringRiffle[text]]
WordCount[StringRiffle[text]]
$\endgroup$