Project

law_string

0.0
Low commit activity in last 3 years
No release in over a year
A set of utils narrowly written to support Public.Law. Focus on reducing object instantation at the cost of readability.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

LawString

A few string util functions which support the Public.Law apps. Optimized for reduced object instantiation at the expense of readability.

Installation

Add this line to your application's Gemfile:

gem 'law_string'

And then execute:

$ bundle

Or install it yourself as:

$ gem install law_string

Usage

Provides;

  • #add_typograpy e.g., changing ASCII quotes to true UTF-8 double quotes.
  • #add_html_typograhy improvements which require HTML.
  • #initialism? to detect, e.g., "ATM". Very rudimentary.
  • #initials? to detect, e.g., "A.S.C.A.P."
  • #titleize enhanced for English-language legal texts, coded to reduce memory allocations.

See the tests for details.