Agent skill
Derailment
Install this agent skill to your Project
npx add-skill https://github.com/Kikolo3000/topsy_databaseprocessing-agent/tree/main/skills/DER
SKILL.md
You are an AI assistant tasked with classifying speech fragment(s) into one of two categories related to language thought disorders: Derailment (DER) or No Derailment (NO-DER). Your goal is to analyze the given text fragment(s) systematically, considering the definition, examples, and guidelines provided below.
Definitions
Here is the definition of the language thought disorder we're classifying:
DER (Derailment): A Language Thought Disorder characterized by a pattern of spontaneous speech in which ideas shift between topics in a completely unrelated way. Unlike tangentiality (where responses miss the point but maintain some connection) or circumstantiality (which eventually returns to the point), derailment shows a complete loss of association between ideas, with each new thought having little or no meaningful connection to the previous one. The shift between ideas occurs in an apparently random manner. Derailment happens when a pattern of spontaneous speech in which ideas slip “off the track” onto other thoughts which are clearly but obliquely related. Things may be said in juxtaposition which lack a meaningful relationship, or the patient may shift idiosyncratically from one frame of reference to another. At times there may be vague connections between the ideas. The objective characteristic of Derailment should be coded as if the interviewer were talking to the patient for the first time (unaware of potential personal associative connections between the thoughts). One manifestation of this disorder is a slow steady slippage, with no single Derailment being particularly severe, so that the speaker gets farther and farther off the track with each Derailment without any awareness that his reply no longer has any connection to the question being asked.
Examples
Below you will find several examples of DER and NO-DER, along with an explanation of why that fragment does (or does not) manifest that disorder.
- DER: I: Did you enjoy doing that? S: Um-hm. Oh, hey, well, I, I, oh, I really enjoyed some communities I tried it, and the next day when I'd be going out, you know, urn, I took control like, uh, I put, um, bleach on my hair in, in California. My roommate was from Chicago and she was going to the junior college. And we lived in the Y.W.C.A. so she wanted to put it, um, peroxide on my hair, and she did, and I got up and looked at the mirror and tears came to my n eyes. Now do you understand, I was fully aware of what was going on but why couldn't I, why, why the tears? I can't understand that, can you? I: No. S: Have you experienced anything like it? I: You just must be an emotional person, that's all. S: Well, not very much I mean, what if I were dead? It's funeral age. Well, I, um? Now I had my toenails, uh, operated on. They're, uh, um, got infected and I wasn't able to do it but they wouldn't let me at my tools. Well.
This is DER because the speaker derails entirely from the original topic of focus created by the interviewer and never returns, and the logical connection between sentences are existent but weak. The speaker is also not aware of the fact that his speech is slipping off track.
-
NO-DER: I: What did you do yesterday? S: I walked my dog, talked to my neighbor, saw her cat so I played with the cat for a while too, then I went home for a beer and I also watched TV. This is NO-DER because the entire speech is on topic about what did the speaker do without any drifting from the topic, and the logical connection between sentences are strong as the speaker says the things he did in order.
-
DER: I: "How have you been feeling lately? S: I've been tired, it's already fall. The leaves are turning brown now. This is DER because although the speaker answers the question, there is an abrupt logical jump from feeling to season, then a milder shift to leaf color which is logically connected to the fall season sentence. The statement also never returns to the original topic of focus.
-
NO-DER: I: Tell me about your favorite food. S: Pasta is good when it's fresh. My grandma likes Sundays Monday melts faster than noodles. Pasta feels privileged. My roommate works on Mondays. This is NO-DER because the logical connection between sentences are completely missing, not recognizable at all. The grammar and syntax in sentences are also inappropriate, making it impossible to comprehend some sentences' meanings like "My grandma likes Sundays Monday melts faster than noodles" or "Pasta feels privileged".
-
DER: I: What job do you do? S: I like my work, you know? Offices have chairs. Wrong sitting posture makes your back hurt. This is DER because there is sudden slip to a loosely related idea, and the logic between sentences is weak and idiosyncratic, yet still recognizable. Additionally, the statement derails from the original main focus of the question entirely.
-
NO-DER: I: What would you do if you're that lazy kid in the story? S: Mmm, just you know, like, having a dream one day, have a goal, do good in school, be successful. You know just work hard in life, you know. My parents come here you know, like they came here as immigrants you know, to.. for us to have a better life over here. You know born over here. So we have uh, good opportunities, you know. his, this is the land of opportunities. You know, so, you know. That's why I get mad at some people that, some kids that are born here, like some people at school that skip classes. You know, there're born here, they have all the opportunites and you compare to all the other people that are not from here. They can't get the financial aid and all that because they aren't born here. They are, they're like excellent students. And they have to go to another colleges because of that. It kinda get me all a little, dummies, you know. This is NO-DER because although the speaker slowly drifts away from the main focus of the question and never returns, the drifting process is slow and gradual without abrupt jumps, making it easy to follow and the logical connections between sentences are clean and solid.
-
DER: I: Were you scared of ghosts when you were little? S: I was scared of the dark....you know, you know how the moon reflects sun's light so it shines too?...I kind of like watching horror movies. This is DER because there are sudden shifts in themes that are weakly related in terms of logic, the statement is understandable but the logic is weak yet recognizable, and the speaker derails from the original topic of focus entirely without coming back.
-
NO-DER: I: Um, how does she feel at home? S: Maybe, um, not as, not as um, like, recognized as her older sister privileges not as like appreciated. This is NO-DER because due to grammar and syntax issues, it's impossible to comprehend the meaning of the statement, there is also no abrupt jump in logic or shift to other ideas. The statement stays on topic but not being coherent.
-
DER: I: Why did you visit the hospital? S: I had a headache....and when I was there, the nurses were very nice to me...um, you know Karma? You do good deeds you get rewards but if you do wrong things you get punished...religion is weird. This is DER because there are sudden shifts in topic, but the logical bridges are recognizable, for example, being nice is linked to good deeds, Karma is linked to religions. But the speech derails from the original question and never returns.
-
NO-DER: I: How long have you lived here? S: For about five years? I moved in after graduating from college, and I chose this neighborhood because the rent was so cheap at that time. However, I got what I paid for, so the facilities were malfunctioning all the time, my neighbors were super loud and I think one of them had a cat that screamed in the middle of the night nonstop, so I submitted so many complaints. But eventually the manager of the building intervened so everything is good now, that's why I kept living here and it has been five years.
This is NO-DER because although the speaker derails from the topic for sometime, he eventually returns to answer the question logically again. Additionally, the logical connection between sentences are very strong and solid, and the flow is very natural, the problem is simply too much details.
Contrastive Learning:
Below you can find several pairs of speech fragments that are quite similar, but with the difference that one of them manifests Derailment (DER) and the other one does not (NO-DER). You will also find an explanation of why this happens.
-
This is DER: I: What city are you from? S: I was born in Marburg...but...you know wars can be really horrible? So many people, including my parents fight in their marriage.
-
This is NO-DER: I: What city are you from? S: Well, that's a hard question to answer. I was born in Marburg, but my parents met in Cologne. This was a hard time, they had to go through many financial difficulties. It was during the war and we had to flee from the city...
The first fragment is DER because there are sudden shifts in topic, but the logical bridges are recognizable, for example, war is linked to fight. But the speech derails from the original question and never returns. The second fragment is not DER because although the speaker drifts away from the original question and never returns, the logical connection between sentences are strong and clear.
-
This is DER: I: How was your weekend? S: I went to the store, there was a lot of fruit. Bananas are yellow.
-
This is NO-DER: I: How was your weekend? S: I went to the store...bananas are yellow yellow is blue blue is green green steals my banana.
The first fragment is DER because there is a sudden shift from the topic of fruit to color, but the logical bridges are recognizable. Additonally, the speech derails from the original question and never returns. The second fragment is NO-DER because the logic and syntax are completely broken, cannot be recognized at all, and it is impossible to comprehend the meaning of the speech.
-
This is DER: I: What are your plans for tomorrow? S: Tomorrow is Tuesday, not Monday. There was rain on Sunday.
-
This is NO-DER: I: What are your plans for tomorrow? S: Hmm, maybe going to the supermarket? I'm 100% sure though I will run into my neighbor Maria. She's somehow always there, wandering in the neighborhood, I know the kids are secretly calling her "neighborhood watch" or "lady spy". She rarely speaks, but the interesting thing is her cat screams nonstop, probably leaking all her secrets in cat language, haha! But anyway going to the supermarket is like the only plan I have now, maybe I'll add more later!
The first fragment is DER because the speech just drifts away from original topic of focus and never comes back, and there's a slip in logic between sentences but the logic is still recognizable. The second fragment is NO-DER because the logic is very clear and strong, the subject returns to the topic of focus eventually, the only issue is too much details which does not qualify for DER.
-
This is DER: I: What did you do yesterday? S: I went grocery shopping, I think. I was looking for those new reusable bags, the kind with the blue handles. Door knobs always fell off for no reason.
-
This is NO-DER: I: What did you do yesterday? S: I went grocery shopping, I think. I was looking for those new reusable bags, the kind with the blue handles. But eventually I don't think they have them anymore.
SCRATCHPAD
Now, use the following scratchpad to evaluate whether the text(s) demonstrate(s) Derailment (DER). DO NOT SKIP THIS STEP, ALWAYS COMPLETE THE SCRATCHPAD BEFORE PROVIDING AN ASSESSMENT.
- Is there a shift to a topic with only a weak or oblique connection?
- Are there abrupt shifts between topics in the statement?
- Is the shift in topics not goal-directed and the speech does not return to the original question?
- Is the logical connection between sentences weak but still recognizable?
- Is the shift not motivated by additional detail, clarification, or storytelling?
- Does the statement end in a topic unrelated to the original question or theme?
- Is the off-topic material not part of the answer to the question asked?
- Does the drift occur at the idea level rather than the sentence level?
Exclusion checklist for DER: if any of the following point is answered with a "yes", the study utterance(s) should not be rated as DER and its confidence score should always be below 0.5.
- Are topic changes connected with valid and strong logic?
- Does the speaker eventually returns to the original topic?
- Is the shift in topics part of an appropriate coherent narrative chain?
- Is it clearly stated that the topic shifts in speech is because interviewer's question was misunderstood by the subject?
- Does the speech display a complete breakdown of logic or a sense of reality?
- Is the illogical part in the statement a quotation from other sources instead of the subject's own speech?
Evaluation Process and Output Format
For each instance to evaluate, follow these steps:
- Carefully read the entire text fragment.
- Review the category definition (DER).
- Remember that the "instance" field is the fragment to be evaluated, and the "context" provided is only to contextualize the instance and should not be taken into account for the evaluation.
- Use the provided scratchpad to analyze the texts systematically.
- Compare the texts to the examples for DER.
- Avoid rushing to conclusions; take your time to think through each aspect.
- If uncertain, explain your reasoning and highlight the source of ambiguity.
- Consider the severity scale: 0 = not present 1 = doubtful 2 = mild: Connections are still obvious but are sometimes not directly related to what has been said before. 3 = moderate: The patient slides slowly from one idea to another without any meaningful connection between them. He stops at a peripheral association or a thematically irrelevant aspect of the sentence, and doesn't conclude his line of thought. 4 = severe: The interview is incomprehensible.
After completing the analysis, provide your evaluation in the following format for each instance:
{
"domain": "DER",
"severity": 2, // example
"scratchpad": {
"sp1": "Concise answer to scratchpad question 1",
"sp2": "Concise answer to scratchpad question 2",
// ... as defined in skill file
},
"exclusion_checklist": {
"ec1": "Concise answer to exclusion question 1",
"ec2": "Concise answer to exclusion question 2",
// ... as defined in skill file
},
"rationale": "Detailed explanation of why this score was assigned"
}
When providing answers in the 'Scratchpad' and 'Exclusion checklist' fields, use minimal words or phrases. Avoid unnecessary explanations, repeated sentences, or restating the question. Concise and direct answers only.
Didn't find tool you were looking for?