# Filler words prompt recommendations

**URL:** <https://community.openai.com/t/filler-words-prompt-recommendations/189286>\
**Category:** Prompting\
**Tags:** gpt-4, chatgpt\
**Created:** [May 2, 2023, 4:22pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286 "2023-05-02T16:22:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico.moschopoulos](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nico.moschopoulos](https://community.openai.com/u/nico.moschopoulos)\
**Post date:** [May 2, 2023, 4:22pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/1 "2023-05-02T16:22:15Z")

</div>

Hey!

I’m currently exploring different prompts for text editing and I’m wondering if any of you have recommendations for a prompt that can remove filler words from text without summarizing it.

I’m specifically looking for a prompt that can identify and remove words such as “um”, “uh”, “like”, “you know”, and other similar phrases that don’t add much value to the text but can be distracting or detract from its overall quality. Everything I’ve tried so far (few shot prompting, GPT4 “personas”, and a lot of other prompts) have all yielded a lot of summarisation from the AI. I want to preserve all the context, but just slightly tweak the input to read a little more formally.

The input will be sections of interview transcripts (ie questions asked and the answer provided).

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [May 2, 2023, 5:46pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/2 "2023-05-02T17:46:29Z")

</div>

What you’re describing are [stop words](https://en.wikipedia.org/wiki/Stop_word).

Does it have to be done through ChatGPT, or can you use something else?  
Here’s an example using Python.

Otherwise, your only option (off the top of my head) would be giving it a list, or even making it a plugin.

> **[Removing stop words with NLTK library in Python](https://medium.com/analytics-vidhya/removing-stop-words-with-nltk-library-in-python-f33f53556cc1)**
>
> How to remove stop words in NLP using Python’s NLTK library

---

<div class="post-metadata">

**Author:** ![sps](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/sps/32/7736_2.png) [@sps](https://community.openai.com/u/sps)\
**Post date:** [May 2, 2023, 6:02pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/3 "2023-05-02T18:02:37Z")

</div>

Here’s a working example

 ![image](https://us1.discourse-cdn.com/openai1/original/3X/b/0/b062cfbb6c18489fe5ff80468a8b1863ec5d550b.png)

---

<div class="post-metadata">

**Author:** ![nico.moschopoulos](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nico.moschopoulos](https://community.openai.com/u/nico.moschopoulos)\
**Post date:** [May 2, 2023, 6:26pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/4 "2023-05-02T18:26:57Z")

</div>

@sps @anon10827405 – thank you! It’s a little more than just stop words though, it’s input that looks a bit more like this:

“They don’t, for instance, some things, some of their online exercises don’t work when they try to open them.”

I’d like to have this rewritten as “Some of their online exercises don’t work” (optionally “when they try to open them”).

More broadly it’s real dialogue (as it comes from interview transcripts), so what we want to remove isn’t perhaps as simple / straightforward as an array of filler words, that’s why I was thinking to lean on GPT. Is there a good way to do this directly in code?

Additionally, I’ve noticed that issues arise usually / mostly when we try and clean multiple question / responses at the same time. If we do them one-off, it works fairly well, but if we do n \> 3, it starts summarizing a lot. It’s, however, unwieldy and inefficient to do the cleaning one off ☹

---

<div class="post-metadata">

**Author:** ![dror](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dror/32/8104_2.png) [@dror](https://community.openai.com/u/dror)\
**Post date:** [May 2, 2023, 8:15pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/5 "2023-05-02T20:15:59Z")

</div>

You can try something like this.

```auto
1. Break the text into sentences.
2. For each sentence do this: describe and experiment with what you want done.
Once you're done review your work and check that the above instructions have been followed correctly.

```

I’m not going too much into the details of what you need done in step 2, because you’ll need to test with your data and see what works best.

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [May 2, 2023, 9:10pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/6 "2023-05-02T21:10:15Z")

</div>

Try a one-shot or two-shot… ie give it a couple examples and it’ll do better, I bet.

Good luck.

---

<div class="post-metadata">

**Author:** ![sps](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/sps/32/7736_2.png) [@sps](https://community.openai.com/u/sps)\
**Post date:** [May 3, 2023, 12:41am UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/7 "2023-05-03T00:41:47Z")

</div>

This is achievable. It required some iteration for the sentence you gave.

 ![Screenshot](https://us1.discourse-cdn.com/openai1/original/3X/9/c/9cdd683cc1b89469db1084323b714db00eb3d090.png)

If you want to “batch”, you’ll have to [append the system message at the end](https://community.openai.com/t/batching-with-chatcompletion-endpoint/137723) rather that the beginning.

You’ll have to take time to refine it according to your data and desired output. Alternatively you can spend some time in creating a training dataset with prompts and desired completions and fine-tune a base model.

---

<div class="post-metadata">

**Author:** ![nico.moschopoulos](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@nico.moschopoulos](https://community.openai.com/u/nico.moschopoulos)\
**Post date:** [May 3, 2023, 1:09am UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/8 "2023-05-03T01:09:57Z")

</div>

Thank you @sps, I’ll try that out 🙂

---

<div class="post-metadata">

**Author:** ![stevenic](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@stevenic](https://community.openai.com/u/stevenic)\
**Post date:** [May 3, 2023, 12:24pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/9 "2023-05-03T12:24:08Z")

</div>

> [@nico.moschopoulos](#):
>
> They don’t, for instance, some things, some of their online exercises don’t work when they try to open them.

You can give this prompt a try:

 ![image](https://us1.discourse-cdn.com/openai1/original/3X/9/b/9bd8eefd6a71e735492a3a8f99a7f4da5ae238b7.png)

I don’t use the “system” role (ever) but you could also try it with the system role.

---

<div class="post-metadata">

**Author:** ![jhall0947](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/jhall0947/32/146360_2.png) [@jhall0947](https://community.openai.com/u/jhall0947)\
**Post date:** [March 9, 2024, 4:12pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/11 "2024-03-09T16:12:40Z")

</div>

Mr Sps can you please help me I do have a few questions to ask

---

<div class="post-metadata">

**Author:** ![sps](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/sps/32/7736_2.png) [@sps](https://community.openai.com/u/sps)\
**Post date:** [March 9, 2024, 4:23pm UTC](https://community.openai.com/t/filler-words-prompt-recommendations/189286/12 "2024-03-09T16:23:17Z")

</div>

Welcome @jhall0947

I recommend creating a separate topic on the forum.
