# Create A Stopwords List

### Create a stopwords list from the Natural Language Tookit (NLTK)

#### [Research Notebook: Creating a Stopwords List for Research](https://docs.tdm-pilot.org/create-a/)

#### Download the stopwords list to your local device:

Step 1: Click "Jupyter" and go to the main directory\
Step 2: Go to folder "Data"\
Step 3: Check "stop\_words.csv" and click Download<br>

![](/files/-MUX66_Bvb9TpFEmHuWf)

![](/files/-MUX6c46VrkghX1CWBcI)

![](/files/-MUX6t4GuDatcGs65YgR)

#### Customize a stopwords list by adding your own stopwords:&#x20;

```python
my_stopwords= ['my_word1', 'my_word2']        #Add two custom stopwords
stop_words = stop_words + my_stopwords
#print(len(stop_words))

with open('data/stop_words.csv', 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(stop_words)
```


---

# 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/learn/tutorials/text-analysis/text-analysis-in-jstor/create-a-stopwords-list.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.
