arabic_facts 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/arabic_facts.rb +20 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9835be79e22ebd988eff4991766175d43e1d26fee10cd6cb6d85fa44aabd11a2
|
4
|
+
data.tar.gz: aaaa05202fce092ac6a9086453bf202f6b090c2c71e8c853963eb803671095ce
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 78885080b514449f8c7d23309c8ab26f54398eac5bdbcf00313d7af5de5f19acc0c0a41004127bab486a78a3183a3ea8fda13d481e4355777308d13216a1e1f3
|
7
|
+
data.tar.gz: 52edc901df88693ecb062dc3777ea2ca141f8076429713803c9fb10e216d59d71ac4bcbba9497949d87f7ca764f63ea7b234ebe300dce08810dd4da06b4550fd
|
data/lib/arabic_facts.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
module ArabicFacts
|
2
|
+
def self.random_fact
|
3
|
+
facts.sample
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.facts
|
7
|
+
[
|
8
|
+
"Arabic is one of the most widely spoken languages globally, with over 310 million native speakers. It is the official language of 22 countries in the Arab world.",
|
9
|
+
"Arabic is written from right to left, which is the opposite of many other languages. The Arabic script is cursive, and the letters change shape depending on their position in a word.",
|
10
|
+
"There are two main forms of Arabic: Classical Arabic, used in classical literature and religious texts such as the Quran, and Modern Standard Arabic (MSA), used in modern written and formal spoken contexts.",
|
11
|
+
"Arabic has numerous dialects across different regions, and they can vary significantly. Dialects may differ in pronunciation, vocabulary, and grammar.",
|
12
|
+
"Arabic is one of the six official languages of the United Nations. This recognition reflects its global significance.",
|
13
|
+
"The Arabic script consists of 28 letters, and it is part of the abjad script family. Arabic letters change form based on their position in a word and whether they are connected to other letters.",
|
14
|
+
"Arabic has a rich literary tradition, and it played a crucial role in preserving and transmitting classical knowledge during the Islamic Golden Age. Many classical works in science, philosophy, and literature were written in Arabic.",
|
15
|
+
"Arabic numerals, the number system used worldwide today, originated in the Arab world. They were introduced to Europe through translations of Arabic mathematical texts.",
|
16
|
+
"Arabic has significantly influenced other languages, especially in areas like science, mathematics, and medicine. Many English words, such as algebra, algorithm, and alcohol, have Arabic roots.",
|
17
|
+
"Arabic speakers often experience diglossia, a situation where two varieties of a language coexist within a community. In the case of Arabic, it involves the use of both Modern Standard Arabic and local dialects for different purposes."
|
18
|
+
]
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arabic_facts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Soul of dragon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-02-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Get random facts about Arabic using this gem.
|
14
|
+
email:
|
15
|
+
- dragon.soul.liberation@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/arabic_facts.rb
|
21
|
+
homepage:
|
22
|
+
licenses: []
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.0.3.1
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: A Ruby gem that provides facts about Arabic language.
|
43
|
+
test_files: []
|