# 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); // "السَلَامُ عَلَيْكُمْ"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mdanok.gitbook.io/arajs/text-functions/strip-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
