0

I am trying to analyze a series of sentences by identifying the most common adverb-adjective-noun strings. I have managed to get answers for how to do so with random words but I think this is a standalone question, and it might better to be dealt with separately.

In this case, I would like to omit common word types like personal pronouns, articles, prepositions and even verbs. Ideally, the results should produce:

  • Most common nouns
  • Most common adjectives
  • Most common adverbs
  • Most common adjective+noun strings
  • Most common adverb+noun strings

I understand there is a way to do this by using an online dictionary but I have been unable to integrate that in my code to get the results I want. Is there any way of automating this without listing all the words that you want omitted? How could it be done?

Here's a link to the spreadsheet I'm using (for this particular query, see page 2) and a screenshot of the types of text I would like to analyze with a manual color-coded visualization of what I want to achieve:

Sample text and visualization of the desired results

djur
  • 304
  • 2
  • 13
  • 1
    But there seems to be a way to recognize the grammar category: https://caninfotech.com/office-suites/find-noun-verb-adjective-google-spreadsheet/ – djur Apr 07 '20 at 11:05
  • Just a side note to this question, you do realize nouns, adjectives and adverbs can also be part of personal names... for example "Advanced Micro Devices" – CodeCamper Apr 07 '20 at 16:19
  • I understand that. In the sample text I created in the spreadsheet, there is no proper name that is comes up twice but they should appear in the results list as well. – djur Apr 07 '20 at 22:28
  • So you want Advanced Micro Devices to be quadruple counted... Advanced, Micro, Devices, Micro Devices etc? – CodeCamper Apr 08 '20 at 00:59
  • I don't mind them being quadruple counted. I would like to use a solution that allows me to recognize common language patterns. Do you think this could somehow be achived? – djur Apr 08 '20 at 07:24
  • Is this a google sheets question or a general programming question, without some sort of progress and specificity of what you want to do this might not be an appropriate stackoverflow question – CodeCamper Apr 08 '20 at 14:26

0 Answers0