# Discourse Post Abbreviations

**URL:** https://meta.discourse.org/t/discourse-post-abbreviations/55274
**Category:** Plugin
**Tags:** deprecated
**Created:** [January 6, 2017, 10:21am UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274 "2017-01-06T10:21:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [January 6, 2017, 10:21am UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/1 "2017-01-06T10:21:20Z")

</div>

# [Discourse Post Abbreviations](https://github.com/critcola/discourse-post-abbreviations)

This plugin for Discourse wraps `<abbr>` HTML tags around a curated list of well known acronyms and abbreviations in posts, improving UX and SEO.

## Demo

See it in action and test it out for yourself on our [Crit Cola’s Discourse](https://critcola.com/community/?utm_source=meta.discourse.org&utm_medium=plugin-topic&utm_term=demo&utm_content=discourse-post-abbreviations&utm_campaign=development).

## Installation

Add the plugin’s repository URL to your container’s `app.yml` file, for example:

```yml
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/critcola/discourse-post-abbreviations.git

```

Rebuild the container:

```plaintext
cd /var/discourse
./launcher rebuild app

```

For the plugin to apply retroactively, you’ll need to rebake old posts:

```plaintext
cd /var/discourse
./launcher enter app
rake posts:rebake

```

## License

The Discourse Post Abbreviations plugin is released under the MIT License.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [January 6, 2017, 3:56pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/2 "2017-01-06T15:56:00Z")

</div>

How does this differ from this plugin?

> [@Abbreviations and acronyms plugin](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501):
>
> I participate in a community where there are enthusiasts with lots of knowledge and newbies with not that much knowledge. It has become a habit that experts use lots of acronyms and abbreviations to refer to common terms, or famous webpages or to name known brands in their field of expertise, sometimes they use only initials when referring to famous people in the field, etc. This is not a problem for the oldest participants in the community, but some new people are having a hard time reading som…

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [January 6, 2017, 4:12pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/3 "2017-01-06T16:12:22Z")

</div>

> [@david](#):
>
> How does this differ from this plugin?

Mine is a curated list. Rather than everyone having to individually add hundreds of abbreviations and their variations, the community can contribute to a single, collective list of them.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [March 2, 2017, 12:58pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/4 "2017-03-02T12:58:26Z")

</div>

> [@DanielMarquard](#):
>
> Mine is a curated list. Rather than everyone having to individually add hundreds of abbreviations and their variations, the community can contribute to a single, collective list of them.

But there is no easy way of providing that list list, right? I see it in the code on github, but how do I customize it?

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [March 10, 2017, 12:07am UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/5 "2017-03-10T00:07:32Z")

</div>

> [@tophee](#):
>
> But there is no easy way of providing that list list, right? I see it in the code on github, but how do I customize it?

You can customize it by forking the repository, then copying and pasting one of the lines (I have them in alphabetical order), substituting information in the regular expression where appropriate. If the acronyms could be useful to others, you can submit a pull request and I will merge your changes into the plugin’s repository.

If you need guidance on an example acronym, let me know and I can provide you with the code.

---

<div class="post-metadata">

### Author: ![Thanatermesis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thanatermesis/32/119521_2.png) [@Thanatermesis](https://meta.discourse.org/u/Thanatermesis)
#### Post date: [July 18, 2018, 5:17pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/6 "2018-07-18T17:17:33Z")

</div>

Is this plugin still working?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [July 18, 2018, 5:36pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/7 "2018-07-18T17:36:57Z")

</div>

I’m not sure, but this does the job:

> [@Add \<abbr\> tags to words in posts](https://meta.discourse.org/t/add-abbr-tags-to-words-in-posts/88394):
>
> About This theme component is ported from [Auto-Linkify Words](https://meta.discourse.org/t/linkify-words-in-post/82193) to provide functionality similar to the [Abbreviations and acronyms plugin](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501) – namely to wrap various abbreviations used in a given forum/site/Discourse installation in \<abbr\> tags. Location [https://github.com/metabrainz/discourse-abbrify-words](https://github.com/metabrainz/discourse-abbrify-words)How to install Credits Thanks to @sam for writing the “Linkify words in post” plugin.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 18, 2024, 3:46pm UTC](https://meta.discourse.org/t/discourse-post-abbreviations/55274/8 "2024-06-18T15:46:12Z")

</div>


