# Vocalization Functions

### Table of Contents

* [vocalizeNumber](#vocalizenumber)
* [vocalizeUnit](#vocalizeunit)

### vocalizeNumber

**Syntax**

```javascript
vocalizeNumber(wordlist, syn_tags = "")
```

**Description**

Converts a given list of Arabic words representing a number into its vocalized form. The input should be an array of strings containing Arabic words representing a number.

**Parameters**

* `wordlist` (array) - The input array of Arabic words representing a number.
* `syn_tags` (string) - Optional parameter specifying the syntactic tags associated with the input words.

**Returns**

* `array` - An array of strings containing the vocalized form of the input words.

**Example**

```javascript
const wordlist = ["ثلاثة", "و", "أربعون"];
const vocalized = vocalizeNumber(wordlist);
console.log(vocalized); // ["ثَلاثٌونَ"]
```

### vocalizeUnit

**Syntax**

```javascript
vocalizeUnit(numeric, unit)
```

**Description**

Vocalizes a given Arabic unit based on its numerical value. The input should be a number and an Arabic unit.

**Parameters**

* `numeric` (number) - The numerical value of the unit.
* `unit` (string) - The Arabic unit to be vocalized.

**Returns**

* `string` - The vocalized form of the input unit.

**Example**

```javascript
const numeric = 2;
const unit = "جنيه";
const vocalized = vocalizeUnit(numeric, unit);
console.log(vocalized); // "جنيهان"
```
