上下文

shàngxiàwén
noun #30,907

Meanings

  1. 1 context (textual)
  2. 2 the surrounding text
  3. 3 (computing) context

Examples

Qǐng gēnjù shàngxiàwén cāi cíyì.
Please guess the meaning of the word from the context.
Zhè jù huà tuōlí shàngxiàwén jiù bù hǎo lǐjiě.
This sentence is hard to understand out of context.

Tips

memory
Literally "upper-lower text" — the text above and below. That is exactly what "context" means etymologically (Latin con-textus, "woven together").
usage
In computing/linguistics 上下文 is the standard term for "context" — context-free grammar (上下文无关文法), context window of an LLM (上下文窗口), execution context. For broader "situational context," (yǔjìng) is more common.

Stroke Order

shàng
xià
wén