Last updated: Oct 6, 2026
Assignments · DHG 502 syllabus
Assignment 1: The Company Words Keep in Official Histories (15%)
Due: 13 Oct, 9:00 am
Use the collocation methods from class to examine how an official history (正史) represents one person, group, institution, or concept. The history may be premodern or modern, whole or in part. You may also compare two histories. Official histories are not neutral records: their compilers chose who to include and in what words. Ask what the words around your target suggest about that framing.
On Moodle, submit the URL of your GitHub repository and a PDF of your report. Do not put your name or student ID anywhere in the repository. The repository must include:
README.mdwith your research question, the source(s) (citation, where you got them, rights, and URL), and exact instructions for running the analysisdata/with the source(s) as plain-text UTF-8; if you use only part of a text, say which part and how you selected it- Python script(s) that prepare the text and run the analysis
- the collocation results, one file per run, and a simple HTML page for comparing them
- concordance lines for the collocates you discuss
report.md, the same report as the PDF, 1,000–1,500 words in EnglishAI-USE.mdfollowing the course-wide requirementsrequirements.txt
Method
Use find_collocates from qhchina. Choose the settings that fit your source and your question, and explain those choices. In particular:
- Prepare the text so that segmentation is trustworthy (character conversion, a user dictionary, stopwords, and so on, as needed). Check a sample by eye and say what problems remained.
- Decide which collocates to keep. Filters such as word length, frequency, and significance depend on the language and the size of the text. In classical Chinese, a minimum length of two characters will drop many real words.
- Report one significance measure and one strength measure, and compare the two rankings.
- Run the analysis more than once, changing how “near” is defined (for example the window size, or a window versus the sentence). Save each run. Your interpretation should come from comparing them, not from a single run.
- Read the passages behind the collocates you discuss, and cite them so a reader can find them in the source.
Report
Write 1,000–1,500 words in English, as a short essay:
- Question and source. Your question, which text or part you used, its origin, rights, and size, and why the way it was compiled matters.
- Processing and method. How you prepared the text, and why you chose your window, filters, and measures. Explain, in terms a historian can follow, how the contingency table is built, what a p-value tells you, and how significance differs from strength.
- Results and interpretation. What you found, how the results changed across runs, and where the two rankings disagreed. Use close reading to support or qualify the numbers, and cite at least one scholarly work.
- Limitations. What a different window, target, segmentation, or source might have changed, and what collocations alone cannot show.
You may use AI for code and troubleshooting. The analytical prose must be your own (see the submission rules). A fully AI-generated report receives 0 points. The instructor may ask you to explain your analysis.
Marking criteria
- Source and documentation (20%): citation, provenance, rights, and a clear account of how you prepared the text
- Method and code (25%): a readable workflow whose settings fit the source and the question
- Statistical reasoning (15%): contingency table, significance, and the difference between significance and strength
- Historical interpretation (30%): an argument that connects the collocates to passages and to scholarship
- Reproducibility and AI disclosure (10%): instructions that work, an organized repository with no personal identifiers, and a complete
AI-USE.md
The workflow from class is in the Week 4 notes.