> For the complete documentation index, see [llms.txt](https://mdanok.gitbook.io/arajs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mdanok.gitbook.io/arajs/text-functions/strip-functions.md).

# Strip Functions

### Table of Contents

* [stripHarakat](#stripharakat)
* [stripLastHaraka](#striplastharaka)
* [stripTashkeel](#striptashkeel)
* [stripSmall](#stripsmall)
* [stripTatweel](#striptatweel)
* [stripShadda](#stripshadda)

### stripHarakat

**Syntax**

```javascript
stripHarakat(text)
```

**Description**

Removes harakat (vowel marks) from the given text if it is vocalized except Shadda.

**Parameters**

* `text` (string): The input Arabic text.

**Returns**

* (string): The modified text with harakat except Shadda removed.

**Example**

```javascript
const text = "السَّلَامُ عَلَيْكُمْ";
const strippedHarakat = stripHarakat(text);
console.log(strippedHarakat); // "السّلام عليكم"
```

### stripLastHaraka

**Syntax**

```javascript
stripLastHaraka(text)
```

**Description**

Removes the last haraka (vowel mark) from the given text if it is vocalized.

**Parameters**

* `text` (string) The input Arabic text.

**Returns**

* `string` The modified text with the last haraka removed.

**Example**

```javascript
const text = "السَّلَامُ عَلَيْكُمْ";
const strippedLastHaraka = stripLastHaraka(text);
console.log(strippedLastHaraka); // "السَّلَامُ عَلَيْكُم"
```

### stripTashkeel

**Syntax**

```javascript
stripTashkeel(text)
```

**Description**

Removes tashkeel (diacritic marks) from the given text if it is vocalized.

**Parameters**

* `text` (string) The input Arabic text.

**Returns**

* `string` The modified text with tashkeel removed.

**Example**

```javascript
const text = "السَّلَامُ عَلَيْكُمْ";
const strippedTashkeel = stripTashkeel(text);
console.log(strippedHarakat); // "السلام عليكم"
```

### stripSmall

**Syntax**

```javascript
stripSmall(text)
```

**Description**

Removes all Small Alef (الخنجرية),Small WAW ,Small Yeh Arabic from the given text.

**Parameters**

* `text` (string) The input Arabic text.

**Returns**

* `string` The modified text with small Arabic Small Alef (الخنجرية),Small WAW ,Small Yeh removed.

**Example**

```javascript
const text = "السَّلَامُ عَلَيْكُمْ";
const strippedSmall = stripSmall(text); 
console.log(strippedSmall); // "السَّلَامُ عَلَيْكُمْ"
```

### stripTatweel

**Syntax**

```javascript
stripTatweel(text)
```

**Description**

Removes tatweel (elongation character) from the given text.

**Parameters**

* `text` (string) The input Arabic text.

**Returns**

* `string` The modified text with tatweel removed.

**Example**

```javascript
const text = "السَّـلَامُ عَلَـيْكُمْ";
const strippedTatweel = stripTatweel(text);
console.log(strippedTatweel); // "السَّلَامُ عَلَيْكُمْ"
```

### stripShadda

**Syntax**

```javascript
stripShadda(text)
```

**Description**

Removes shadda (stress mark) from the given text.

**Parameters**

* `text` (string): The input Arabic text.

**Returns**

* `string` The modified text with shadda removed.

**Example**

```javascript
const text = "السَّلَامُ عَلَيْكُمْ";
const strippedShadda = stripShadda(text);
console.log(strippedShadda); // "السَلَامُ عَلَيْكُمْ"
```
