# Text Analysis Examples

### Humanities Example &#x20;

In this text analysis example, Ted Underwood and David Bamman used BookNLP, a Java-based natural language processing code, to explore gender in 93,708 English-language fiction volumes. They articulate one of their major discoveries as follows:&#x20;

> There is a clear decline from the nineteenth century (when women generally take up 40% or more of the “character space” in fiction) to the 1950s and 60s, when their prominence hovers around a low of 30%. A correction, beginning in the 1970s, almost restores fiction to its nineteenth-century state. (One way of thinking about this: second-wave feminism was a desperately-needed rescue operation.)

[**Visit their blog post to learn more about their methods and discoveries.**](https://tedunderwood.com/2016/12/28/the-gender-balance-of-fiction-1800-2007/)&#x20;

![A visualization from Underwood and Bamman's text analysis.](/files/-MRz9HuINkHYPyYJ5Psv)

### Science Example

Here [CORD-19](https://allenai.org/data/cord-19), a database containing thousands of scholarly articles about COVID-19 and other related coronaviruses,  provides a [topic model](https://en.wikipedia.org/wiki/Topic_model) and visualization of 2437 journal articles. The approach they used, [latent Dirichlet allocation (LDA)](https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation), is a natural language processing based generative statistical model. &#x20;

[**Visit to interact with the visualization.**](https://dash-gallery.plotly.host/dash-cytoscape-lda/)

![The topics identified](/files/-MRzRdJAIyXWO2WhZIhG)

![The visualization (color indicates the topic and the node size reflects the number of citations)](/files/-MRzQDjAMNY4N76WwAXK)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bcds.gitbook.io/handbook/digital-scholarship-methods/overview/text-analysis/text-analysis-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
