NICS 2020 · Interactive explainer

Counting the words that set Vietnamese stories apart from other texts

Linguists have measured how stories differ from news, reports and essays in English, Mandarin, Russian and other languages. Vietnamese had very little of this work. We built two equal-sized Vietnamese corpora of 24 million words each, one of stories and one of everything else, and counted which words, word classes and grammatical features each one uses and which of them travel together.

Ten words, one corpus. Is it stories or not?

These are the ten most common words in one of our two 24-million-word corpora. Guess which one.

Mystery corpus

    Normalized frequency as reported in the paper (Table II). Words tagged “not in other top 10” do not appear in the other corpus’s top ten.

    That is the whole method in miniature. Take a large collection of real texts, a , count what is in it, and compare. When the counts are big enough, the style of a genre shows up as numbers: stories talk about tôi “I”, anh “he/you”, and what someone did; reports talk about các “the (plural)”, của “of” and trong “in”.

    Think of it asTelling a novel from a bank report with your eyes closed, just from a tally sheet of the words someone read aloud to you.

    24,019,031words in the narrative corpus
    24,135,552words in the non-narrative corpus
    1,197 vs 41,163texts needed to reach that size
    5grammatical features tracked per 1,000 words
    10.6×more exclamation words in stories
    1 · The gap

    Does Vietnamese tell stories the way English does?

    In 1988 the linguist Douglas Biber proposed the : count dozens of grammatical features across many texts, see which ones rise and fall together, and name each group a of variation. Since then the method has been applied to English, Mandarin, Russian, Somali, Korean, Tuvaluan, Taiwanese and Spanish, and used for stylometry, genre classification and even spotting deceptive writing.

    Thirty years of the method, and where Vietnamese stood

    Tap a year to see one study the paper cites.

    Prior studies as described in the paper’s introduction. Applying the method to Vietnamese has been held back because Vietnamese and English differ in ways that make building and tagging Vietnamese corpora hard.

    Biber found five main dimensions in English. This paper looks at the second one, which he named “Narrative versus Non-Narrative Concerns”. Narrative texts in English pile up past-tense verbs, third-person pronouns, perfect-aspect verbs, , synthetic negation and present-participle clauses, and these features tend to appear together.

    Not all of them make sense for Vietnamese. Vietnamese verbs do not change form, and negation is mostly a separate word, không “no(t)”, so there is neither synthetic nor analytic negation. We kept five features that fit Vietnamese grammar and that a computer could extract automatically from a tagged corpus.

    Which of Biber’s features could we count in Vietnamese?

    Tap a feature. Solid red = counted in this study; dashed = not used.

    Biber (1988) used many more features. This study keeps five; the running example on this page is third-person pronouns. Example words in this figure are illustrative, not taken from the paper.

    2 · Building it

    Two corpora with the same word count and very different texts

    Both corpora come from the Vietnamese Corpus 1.0 (VnC), a collection of 100 million words of contemporary spoken and written Vietnamese. Every word was tagged automatically with its word boundaries and its by CLC_VN_Toolkit, a tool built at the Computational Linguistics Center, University of Science, VNU Ho Chi Minh City.

    The narrative corpus holds novels, short stories, biographies, excerpts from modern drama scripts and poetry collections; 90% of the short stories and novels were published between 2000 and 2020, the rest between 1930 and 2000. The non-narrative corpus was crawled from the web: academic prose, administrative and regulatory texts, commerce, finance and economics, parliamentary proceedings (quochoi.vn), company annual reports, online newspapers (tuoitre.vn) and other non-academic texts, cleaned of comments, menus and adverts.

    Same size in words, but how many texts did each take?

    Pick a measure.

    Narrative

    1,197 texts

    Non-narrative

    41,163 texts

    Each dot is about 100 texts. A novel can run to tens of thousands of words; a news story is a few hundred to a few thousand. To keep the two corpora equal in words, the narrative side needed fewer than 1,200 texts and the non-narrative side over 41,000. Source: Table I.

    With the corpora in place, the study follows the five steps of Biber’s method (the paper’s Figure 1). Follow third-person pronouns through each step.

    How does a pile of text become a table of correlations?

    Pick a step, or use the buttons below.

    The method of the paper’s Figure 1: corpus → feature selection → frequency extraction → normalization → correlation. The statistics were run in Python.

    Why count per 1,000 words?

    A 20,000-word novel will contain more of almost everything than a 500-word news item, simply because it is longer. Comparing raw counts would mostly measure length. So every count is turned into a rate, the : how many times the feature appears per 1,000 words of that text.

    Can a short text use a feature as often as a long one?

    Illustrative texts. Move the sliders and compare raw counts with the rate per 1,000 words.

    Text A · illustrative

    A novel chapter

    Text B · illustrative

    A news article

    Text A per 1,000 words
    Text B per 1,000 words

    Formula (1) in the paper: nf = (f ÷ l) × 1,000, with f the count and l the text length. For scale, the real corpus means are 12.09 (narrative) and 3.60 (non-narrative) third-person pronouns per 1,000 words (Table V).

    3 · Words and word classes

    Stories say “I”; other texts say “and” and “of”

    Before looking at grammar features, we simply counted words. The ten most frequent words already split the two genres.

    Which words top each corpus?

    Tap a word to see where it ranks on the other side.

    Narrative corpus

      Non-narrative corpus

        Tap any word.

        Words tagged “not in other top 10” do not appear in the other corpus’s top ten. tôi “I” is number one in stories and absent from the non-narrative top ten. Source: Table II (normalized frequency).

        For researchers: Table II with part-of-speech tags

        Tags from CLC_VN_Toolkit: Pp pronoun, R adjunct, Nq quantifier, Vc copula, Cm/Cp conjunctions, Ve existential verb, Nn noun. Glosses for là, có, anh, đã, lại, trong are ours.

        The non-narrative list is built from the glue of formal writing: the conjunction và “and” is first, của “of” second, and three , các, một and những, all make the top ten. The stories list keeps only một. Grouping words by part of speech makes the contrast larger.

        Which word classes do stories use far more?

        Pick a word class. Bars are raw counts in each corpus (both about 24 million words).

        Source: Table III. Because the two corpora are about the same size in words, raw counts can be compared directly here.

        Many Vietnamese words can act as more than one word class without changing form: tuyển can be the verb “recruit” or a noun. Which reading wins depends on the genre.

        Think of it asThe English word “run”: in a sports story it is mostly something people do; in a factory report it is mostly a noun, “a production run”.

        Does the same word change its job between genres?

        Pick a word. Each bar shows how its uses split across word classes in each corpus.

        NounVerbAdjectiveAdjunct

        Noun/verb words such as tuyển, qui định, cấu tạo and biến đổi lean towards verbs in stories and nouns elsewhere. English glosses are the paper’s where it gives one. Source: Table IV (%).

        4 · Five features, counted

        Stories lean on third-person pronouns, and vary a lot in how much

        Now the five Dimension 2 features. For each text we computed the rate per 1,000 words, then summarised every feature across all the texts of a corpus with four numbers: the mean, the minimum and maximum, the range, and the .

        How often does each feature appear per 1,000 words?

        Pick a feature. The thick tick is the mean, the shaded band is mean ± one standard deviation (cut at 0), the thin tick is the highest text.

        For researchers: full Table V

        Every minimum is 0, so each range equals the maximum. Values exactly as printed; the standard deviations for present tense and public verbs are printed identically (2.26 and 3.35).

        Third-person pronouns show the clearest gap: a mean of 12.09 per 1,000 words in stories against 3.60 elsewhere. Stories also vary much more among themselves (standard deviation 12.41, about twice the non-narrative 5.86), yet the paper finds no significant difference between the highest values on the two sides. Public verbs such as “say” and “tell” are about one and a half times as common in stories on average, but the most extreme non-narrative text uses three times as many as the most extreme story.

        5 · Which features travel together

        In stories, adjectives keep away from the other four features

        Averages say how often a feature appears. Biber’s idea is about what appears together. For every pair of features we computed a across the texts of a corpus. A positive value means texts with more of one tend to have more of the other; a negative value means one tends to show up where the other is scarce; −1 would mean they never share a text, which Biber calls complementary distribution.

        Think of it asUmbrellas and raincoats: on days you see many of one you see many of the other (positive). Umbrellas and sunglasses mostly come out on different days (negative).

        Which pairs of features rise and fall together?

        Tap any cell to compare the same pair in both corpora. Cells involving adjectives are outlined.

        Narrative corpus
        Non-narrative corpus
        positive (narrative) positive (non-narrative) negative Shade scale tops out at ±0.25

        Source: Figure 2 (Pearson correlations between the five features, per corpus). The largest value off the diagonal is 0.21, so these are weak tendencies, not rules.

        For researchers: the formula

        Formula (2): rxy = Σ(xi − x̄)(yi − ȳ) / √(Σ(xi − x̄)² Σ(yi − ȳ)²), where xi, yi are the normalized frequencies of the two features in text i, and x̄, ȳ their means.

        In the narrative corpus every adjective cell is negative, while the other four features all correlate positively with each other; the strongest pairs are third-person pronouns with public verbs (0.21), third-person pronouns with present tense (0.17), and public verbs with past tense (0.13). In the non-narrative corpus the picture flips for our running example: adjectives and third-person pronouns show the highest correlation in the matrix, 0.15, tied with third-person pronouns and public verbs.

        6 · Against English

        Vietnamese stories echo Biber’s English pattern

        Biber reported the same adjective pairs for English. In both languages, every pair is negative: in stories, texts rich in adjectives tend to have fewer third-person pronouns, public verbs, past-tense and present-tense forms.

        Is the adjective pattern the same in English and Vietnamese?

        Correlation of adjectives with each feature. Add the non-narrative corpus to see the contrast.

        Vietnamese narrative (this study) English, Biber (1988)

        Source: Table VI; non-narrative values from Figure 2. The direction matches in every pair; the Vietnamese values are all closer to zero than the English ones.

        What we learned

        Four takeaways

        1. Two balanced Vietnamese genre corpora. 24,019,031 narrative words in 1,197 texts and 24,135,552 non-narrative words in 41,163 texts, all tagged for word boundaries and part of speech.
        2. Stories are personal and exclamatory. tôi “I” is the most frequent narrative word (12.88) and missing from the non-narrative top ten; stories hold 59,366 exclamation words against 5,601, about 10.6 times as many.
        3. Third-person pronouns separate the genres. A mean of 12.09 per 1,000 words in stories against 3.60 elsewhere, with twice the spread (standard deviation 12.41 vs 5.86).
        4. Adjectives behave as in English stories. In the narrative corpus they correlate negatively with all four other features (−0.016 to −0.15), the same direction as Biber’s English (−0.31 to −0.44); in non-narrative texts they pair most with third-person pronouns (0.15).

        The authors plan to extend the MD approach to corpora with both spoken and written Vietnamese, for comparative Vietnamese–English linguistics and practical language-processing tasks.

        Notes, data and limitations
        Data
        Limitations
        On this page
        Paper (IEEE, NICS 2020)doi.org/10.1109/NICS51282.2020.9335835 Computational Linguistics Center (CLC_VN_Toolkit)clc.hcmus.edu.vn
        Nhu Vo, Thuy Bui, & Dien Dinh. (2020). Text-Type Variation in Vietnamese: Corpus Mining for Linguistic Features in Narrative and Non-Narrative Genres. Proceedings of the 7th NAFOSTED Conference on Information and Computer Science (NICS), 221–225. https://doi.org/10.1109/NICS51282.2020.9335835.

        Read next

        PACLIC 34 · 2020Naming the writer of a Vietnamese text from its word habits13 min readFAIR 2020Picking 100 million words that stand for Vietnamese14 min read

        All publications · Get in touch about this research