# Add "s" to end of every word

**URL:** <https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071>\
**Category:** Support\
**Created:** [November 14, 2022, 2:26pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071 "2022-11-14T14:26:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![esumsea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/esumsea/32/7219_2.png) [@esumsea](https://community.mp3tag.de/u/esumsea)\
**Post date:** [November 14, 2022, 2:26pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/1 "2022-11-14T14:26:39Z")

</div>

I have a list of terms like volcano, glacier and so forth in my comments section. They look like this:  
Volcano  
Grass  
Glacier  
I want to add an s to the end of each word. This should be relatively easy but I suck at regular expressions. Any help in a find and replace format would be appreciated. I tried  
Find: ^([\w]+)  
Replace with: $1s  
But that only seems to work on one word.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 14, 2022, 2:31pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/2 "2022-11-14T14:31:50Z")

</div>

I would create an action group with 2 actions, assuming that the individual words are separated with a comma. If it is a space then use only the space.

Search:,\_  
(where the \_ is a space)  
Replace with: s,\_

And the second action: of the type "Format value" for comment  
Format string: %comment%s

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [November 14, 2022, 5:19pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/3 "2022-11-14T17:19:28Z")

</div>

> [@esumsea](#):
>
> I tried  
> Find: ^([\w]+)  
> Replace with: $1s

This seems to work fine:  
3 lines of COMMENT before applying the Convert Tag -\> Tag for COMMENT  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/2/28c5c084b8b986074680fd14c35ffd846ef60ea3.png)

Convert Tag -\> Tag with your regular expression as Format string:  
`$regexp(%COMMENT%,'^([\w]+)',$1s)`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/4/4771f7b288049601184b69b39d0fc2bda03ce7af.png)

becomes (as already visible in the preview):  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/6/67f4f7d4e3e9adb15490da3cbb072d313f2d7651.png)

---

<div class="post-metadata">

**Author:** ![esumsea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/esumsea/32/7219_2.png) [@esumsea](https://community.mp3tag.de/u/esumsea)\
**Post date:** [November 16, 2022, 2:04pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/4 "2022-11-16T14:04:19Z")

</div>

Thank you both for your input. It works! This is very much appreciated! 🙏

---

<div class="post-metadata">

**Author:** ![esumsea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/esumsea/32/7219_2.png) [@esumsea](https://community.mp3tag.de/u/esumsea)\
**Post date:** [November 18, 2022, 4:41pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/5 "2022-11-18T16:41:05Z")

</div>

How about if there was two words in a line, like garbage bag, where you only have to add an s to the last word? I ended up using Find:(\b\w+\b) Replace:$1s and that was working for me other than the case with two words.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [November 18, 2022, 5:01pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/7 "2022-11-18T17:01:58Z")

</div>

> [@esumsea](#):
>
> How about if there was two words in a line, like garbage bag,

`$regexp(%COMMENT%,(.)$,$1s)`

This works for any amount of words. It just add a `s` at the end of the entire string/line.

**Hint:** This solution no longer corresponds to the original title of the topic!

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [November 18, 2022, 5:46pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/8 "2022-11-18T17:46:00Z")

</div>

This also does not take into account any of the dumb English exceptions for plurals in some cases. In your example, "Grass" should be pluralized to "Grasses" adding "es" in this case. But I think this would be a tough one to automate! 🤔 😉

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 18, 2022, 5:48pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/9 "2022-11-18T17:48:13Z")

</div>

> [@MotleyG](#):
>
> English exceptions for plurals

Yeah, or man\>men, woman\>women, words like pyjamas, trousers that are already a plural, police, furniture that never gets a plural s ... and so on.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [November 18, 2022, 5:49pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/10 "2022-11-18T17:49:20Z")

</div>

> [@MotleyG](#):
>
> But I think this would be a tough one to automate

What about _moose_, _sheep_ or _shrimp_?  
Or the plural form of any of this words: Fun, Wisdom, Silence, Sugar, Coal, Spelling, Money, Help, Advice, Work, Butter, Love, News...

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [November 18, 2022, 6:07pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/11 "2022-11-18T18:07:13Z")

</div>

Yes, all of these and many more!

---

<div class="post-metadata">

**Author:** ![esumsea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/esumsea/32/7219_2.png) [@esumsea](https://community.mp3tag.de/u/esumsea)\
**Post date:** [November 18, 2022, 11:26pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/12 "2022-11-18T23:26:02Z")

</div>

> [@MotleyG](#):
>
> Yes, all of these and many more!

You all raise great points that I have run into. I know this can be done, as I have an actions I have taken from this site that will capitalize everything except certain words, using the "\b(grass|mass|pass...)\b" arguments, but this would be tougher because there are so many words to address and they do not follow the same format. If my regular expressions skill was not below floor level I might take a crack at it.

At least LyricsLover's "script" will allow me to go line by line instead of word by word, but still, the task will be arduous.

> [@LyricsLover](#):
>
> **Hint:** This solution no longer corresponds to the original title of the topic!

Thanks! I corrected the title.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [December 18, 2022, 11:26pm UTC](https://community.mp3tag.de/t/add-s-to-end-of-every-word/59071/13 "2022-12-18T23:26:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
