PortugueseContractionUtility (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.formats.ad

## Class PortugueseContractionUtility

- java.lang.Object
- - opennlp.tools.formats.ad.PortugueseContractionUtility

-     public class PortugueseContractionUtility
      extends Object

  Utility class to handle Portuguese contractions.

  Some Corpora splits contractions in its parts, for example, "da" > "de" + "a", but according to the fase of language processing, NER for instance, we can't decide if to split a contraction or not, specially because contractions inside names are not separated, but outside are.

  Note: Do not use this class, internal use only!

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PortugueseContractionUtility()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `toContraction(String left, String right)` Merges a contraction

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PortugueseContractionUtility

          public PortugueseContractionUtility()

  - ### Method Detail

    - #### toContraction

          public static String toContraction(String left,
                                             String right)

      Merges a contraction
      Parameters:
        `left` - the left component
        `right` - the right component
      Returns:
        the merged contraction

Copyright © 2026 The Apache Software Foundation. All rights reserved.