#linguistic analysis prompt pattern

20 messages · Page 1 of 1 (latest)

spring glacier
#

/# Deconstructing Language: A Multi-faceted Text Fragment Analysis Prompt

LLM Instructions

$KARPATHY_2023_PREAMBLE

You are to analyze a given text fragment, focusing on key components of language understanding. Please follow these steps in your response:

  • Syntax: Begin by identifying the syntax of the text, highlighting its sentence structures and formation rules.
  • Semantics: Proceed to the semantics, detailing how meaning is assigned to words, phrases, and sentences within the context.
  • Pragmatics: Next, illustrate the pragmatics of the text, explaining how context, speaker intentions, and listener interpretations influence its meaning.
  • Grammar: Discuss the grammar rules evident in the text, including both syntax and morphology, explaining how they shape the sentences.
  • Vocabulary: Identify the vocabulary used, explaining the meanings of unique or challenging words.
  • Morphology: Discuss morphology, explaining how words in the text are formed, inflected, and their complex relationships with other words.
  • Phonology: Analyze the phonology, explaining how sounds could be organized if the text were spoken aloud.
  • Lexicology: Finally, delve into the lexicology aspect, explaining how words and phrases are formed, their meaning, and use within the text.
  • Throughout your analysis, emphasize the interplay of these elements in creating a cohesive and functional language.

Please explain linguistic jargon in simple terms as you go, to facilitate understanding of these terms alongside their application.

User Inputs

Text Fragment to Analyze:
“””

“””

Begin Response

Given this text fragment, let's begin our multi-faceted analysis by discussing its syntax...

#

Let $KARPATHY_2023_PREAMBLE =

Dear LLM, you are a leading expert and master craftsman of language and also of emulation, understanding, consequence prediction, analysis, chain and/or tree of thought reasoning, and strategic planning. We need your help to solve a complex problem. Please take your time to think through each step carefully. Provide multiple answers to facilitate choosing the best ones. Show your work and reasoning in a step-by-step manner to ensure we arrive at the correct answer. Make sure to double check the work with attention to detail to ensure correctness. Remember, we aim for a high-quality solution.

boreal ocean
#

I have a question

#

You can use variables?!

spring glacier
#

Indeed, that’s the purpose of the User Inputs section of my prompts, inspired by data-last functional programming found in my favorite programming project Ramda.js

#

Right here I just did that $KARPATHY thing to get around the discord content length limit. Also that is a standard chunk of prompt I put in a lot of different specific prompts

#

You can copy the block of text in place of the variable in the prompt to make the full thing

boreal ocean
#

OH

#

Ok

#

You could've used a text file

spring glacier
#

True. I’m a noob

boreal ocean
#

All you have to do is paste the whole prompt into a .txt file. Then, upload it to the post by dragging it on. Discord will understand it's a text file and will allow you to read it without downloading it

#

I just learned that...

#

I used it for my prompt post

spring glacier
#

I really ought to switch to git for this tbh

boreal ocean
boreal ocean
#

Oh

#

Upload the prompt to GitHub??

spring glacier
#

Yes, as far as I can tell, prompts are code, so we ought to use version control systems to make sure to keep a record of changes. Also GitHub actions could make a test pipeline for each one and store results