A large lower case letter i surrounded by tiny words.
The In Other Words: List field formatter configuration form.
The In Other Words: Sequential terms field formatter configuration form.
Example page using In Other Words field formatters.

This module provides field formatters for presenting lists of items in a more grammatical way and for condensing sequential lists into shorter text.


About the In Other Words module

In Other Words 3.x

Actively maintained and improving.

In Other Words 2.x

Security fixes only. It includes support for Smart Date. However, that feature is experimental and has one known major error - #3363014: Cannot access Manage Display page when used with Smart Date module.

In Other Words 1.x

Security fixes only. This version will be deprecated in the near future. It also does not support Drupal 10.

Features

Punctuating lists

Any listing, whether sequential or not (the latter using In other words: List, can be made natural in a sentence, including using the Oxford (series) comma. For example, from any kind of multiselect set of flavors, if four are chosen, the field can be configured to output this:

Our flavors include chocolate, vanilla, strawberry, and peppermint chocolate chip.

Shortening sequential lists

In Other Words can shorten sequential lists by skipping over the items in the middle of the sequence. For example if the following full list is available:

Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

And a content author selects the following from them:

Monday, Tuesday, Wednesday, Thursday

The In other words: Sequential terms formatter can be configured to interpret this and output:

Monday through Thursday.

Supported fields

Currently In Other Words supports the following field types:

  • taxonomy terms, summarizing sequential terms using the order in their vocabulary. Text before, text after, the connecting word or symbol, such as to or (that's an en-dash), can all be configured to whatever you'd like. (We plan to (read: are accepting patches for) also doing this for text lists.)

    Also, both within and to join the sequences can be configured to use natural language, for example: Available on Sundays, Mondays through Wednesdays, and Fridays. can be the output based on Sundays, Mondays, Tuesdays, Wednesdays, Fridays being selected.

  • Text lists and entity reference labels (including taxonomy terms) can be output as natural language listings with or without the sequential (oxford) comma.

  • Date/time ranges (In Other Words 2.x only) can be output without redundant years or days. For multivalue date ranges, they can be shown with past dates listed separately or not at all, and using natural language sequences (oxford/sequential comma or not). Warning: This functionality is experimental, with one known major issue - #3363014: Cannot access Manage Display page when used with Smart Date module

Similar modules

For removing redundancy from individual dates you could instead use DateRange Compact or Smart Date.

Contributing

All are welcome to join the issue discussion or submit patches or merge requests!

 

"Word as Image" by Ji Lee is licensed under CC BY-NC 4.0.

Supporting organizations: 
provided the idea and the primary development.
provided the initial need and some funding.
provided the continuing inspiration to keep contributing to Drupal.
Helps maintain the project.

Project information

Releases