Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial commit farsi (Iran) spelling dictionary in UTF-8
  • Loading branch information
ajavadinezhad committed Apr 5, 2019
commit 5670e1717d8c00b347392900cf4a1179ae9d8cd0
2 changes: 2 additions & 0 deletions dictionaries/fa-IR/index.aff
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SET UTF-8
SET UTF-8
4 changes: 4 additions & 0 deletions dictionaries/fa-IR/index.dic
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
3
افغانستان
ایران
آلبانی
27 changes: 27 additions & 0 deletions dictionaries/fa-IR/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
var read = require('fs').readFile
var join = require('path').join

module.exports = load

function load(callback) {
var pos = -1
var exception = null
var result = {}

one('aff')
one('dic')

function one(name) {
read(join(__dirname, 'index.' + name), function(err, doc) {
pos++
exception = exception || err
result[name] = doc

if (pos) {
callback(exception, exception ? null : result)
exception = null
result = null
}
})
}
}
28 changes: 28 additions & 0 deletions dictionaries/fa-IR/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "dictionary-fa",
"version": "1.0.0",
"description": "Farsi (Iran) spelling dictionary in UTF-8",
"license": "(MIT AND BSD)",
"keywords": [
"spelling",
"myspell",
"hunspell",
"dictionary",
"ir",
"fa",
"persian",
"iran"
],
"repository": "https://github.com/wooorm/dictionaries/tree/master/dictionaries/fa-IR",
"bugs": "https://github.com/wooorm/dictionaries/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"Thomas Beverley <tom.beverley101@gmail.com>"
],
"files": [
"index.js",
"index.aff",
"index.dic"
]
}
1 change: 1 addition & 0 deletions dictionaries/fa-IR/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
in progress