PHPackages                             andela/dictionary - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andela/dictionary

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andela/dictionary
=================

An Urban Dictionary Agnostic PHP Package

110PHP

Since Sep 17Pushed 10y ago3 watchersCompare

[ Source](https://github.com/andela-cijeomah/dictionary)[ Packagist](https://packagist.org/packages/andela/dictionary)[ RSS](/packages/andela-dictionary/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

\#Urban Dictionary

The Dictionary is a PHP agnostic package that returns meaning of slangs and sample usage of the slang.

\#Design

Classes

- Data: The Data Class that houses the dictionary array
- Dictionary: This is the Class that houses the five core methods of the application which are as follows -addWord($word); -updateWord($word); -findWord($word); -removeWord($word); -rankWords($sentence)

\#Testing

The framework for testing this application is phpunit and the TDD principle was used to make sure that the code was well tested.

```
php vendor/phpunit/phpunit/phpunit

```

\#Install

- To install this package from packagelist, PHP 5.0+ and Composer are required

```
composer require andela/dictionary

```

\#Install

The sample codes below shows how to use this package

- To instantiate the Dictionary Class

```
 $dictionary = new \Andela\Dictionary\Dictionary();

```

- To add the slang "park", it's meaning "Tell someone to relax", and sample usage "Guy park well o"

```
$dictionary->addWord('park', 'Tell someone to relax', 'Guy park well o')

```

- To update the slang "park"

    ```
    $dictionary->updateWord('park', 'A car park', 'An updated Test');

    ```
- To find the slang "park"

    ```
    $dictionary->findWord('park');

    ```
- To remove the slang "park"

    ```
    $dictionary->removeWord('park');

    ```
- To test for word ranking

    ```
    $word = new \Andela\Dictionary\Dictionary();
    $word->rankWords("Hello it is nice to tell if it is cool to say rubbish");

    ```

Change log
----------

[](#change-log)

Please refer to [CHANGELOG](CHANGELOG.mds) file for information on what has changed recently.

Contributing
------------

[](#contributing)

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

Credits
-------

[](#credits)

Andela urban Dictionary is maintained by [Chidozie Ijeomah](https://github.com/andela-cijeomah).

License
-------

[](#license)

Andela urban Dictionary is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor4

4 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/443b388bfe51d8d00038295c49d7a88a0eb294b5cb6482168fb0947b0576c58e?d=identicon)[andela-cijeomah](/maintainers/andela-cijeomah)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (22 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (9 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (4 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (4 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (2 commits)")[![mAAdhaTTah](https://avatars.githubusercontent.com/u/4371429?v=4)](https://github.com/mAAdhaTTah "mAAdhaTTah (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![schmittjoh](https://avatars.githubusercontent.com/u/197017?v=4)](https://github.com/schmittjoh "schmittjoh (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![zackkitzmiller](https://avatars.githubusercontent.com/u/111536?v=4)](https://github.com/zackkitzmiller "zackkitzmiller (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![bencorlett](https://avatars.githubusercontent.com/u/181919?v=4)](https://github.com/bencorlett "bencorlett (1 commits)")[![boekkooi](https://avatars.githubusercontent.com/u/399895?v=4)](https://github.com/boekkooi "boekkooi (1 commits)")

### Embed Badge

![Health badge](/badges/andela-dictionary/health.svg)

```
[![Health](https://phpackages.com/badges/andela-dictionary/health.svg)](https://phpackages.com/packages/andela-dictionary)
```

###  Alternatives

[kartik-v/yii2-datecontrol

Date control module allowing separation of formats for View and Model for Yii Framework 2.0

551.5M36](/packages/kartik-v-yii2-datecontrol)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
