Quran / README.md
Abdo0431's picture
Upload README.md
29a0515 verified
|
Raw
History Blame Contribute Delete
2.04 kB
# Bayan Search API
## Supported Languages
The `search_bayan()` function supports the following values for the `target_type` parameter:
```python
languages = [
"ุชุฏู‚ูŠู‚ ุงู„ุงูŠุงุช",
"english",
"french",
"turkish",
"persian",
"urdu",
"russian",
"spanish",
"german",
"indonesian",
"malay",
"bengali",
"bosnian",
"portuguese",
"uzbek"
]
```
## Language Descriptions
| Value | Output |
| ------------ | ------------------------------------- |
| ุชุฏู‚ูŠู‚ ุงู„ุงูŠุงุช | Quran text in Uthmani script (Arabic) |
| english | English translation |
| french | French translation |
| turkish | Turkish translation |
| persian | Persian (Farsi) translation |
| urdu | Urdu translation |
| russian | Russian translation |
| spanish | Spanish translation |
| german | German translation |
| indonesian | Indonesian translation |
| malay | Malay translation |
| bengali | Bengali translation |
| bosnian | Bosnian translation |
| portuguese | Portuguese translation |
| uzbek | Uzbek translation |
## Example Usage
```python
result = search_bayan(
"ูˆู„ู„ู‡ ุงู„ู…ุดุฑู‚ ูˆุงู„ู…ุบุฑุจ ูุฃูŠู†ู…ุง ุชูˆู„ูˆุง ูุซู… ูˆุฌู‡ ุงู„ู„ู‡",
target_type="english"
)
print(result["matched_segment"])
print(result["full_verse"])
```
## Notes
* If `target_type` is omitted, the default value is `"ุชุฏู‚ูŠู‚ ุงู„ุงูŠุงุช"`.
* The search engine supports fuzzy matching and can handle minor spelling mistakes.
* Quranic Uthmani text is returned when using `"ุชุฏู‚ูŠู‚ ุงู„ุงูŠุงุช"`.
* Translations are returned when using any of the supported language names above.