-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a06c63
commit 013e9dc
Showing
6 changed files
with
148 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
const paintingWords = [ | ||
// English | ||
"paint", | ||
"painting", | ||
"draw", | ||
"drawing", | ||
"brush", | ||
"canvas", | ||
"color", | ||
"palette", | ||
"sketch", | ||
"art", | ||
|
||
// Mandarin Chinese | ||
"画", | ||
"绘画", | ||
"油画", | ||
"水彩", | ||
"素描", | ||
"画笔", | ||
"画布", | ||
"颜色", | ||
"调色板", | ||
"艺术", | ||
|
||
// Hindi | ||
"चित्र", | ||
"चित्रकारी", | ||
"रेखाचित्र", | ||
"कैनवास", | ||
"रंग", | ||
"ब्रश", | ||
"पैलेट", | ||
"कला", | ||
|
||
// Spanish | ||
"pintar", | ||
"pintura", | ||
"dibujar", | ||
"dibujo", | ||
"pincel", | ||
"lienzo", | ||
"color", | ||
"paleta", | ||
"boceto", | ||
"arte", | ||
|
||
// Arabic | ||
"رسم", | ||
"لوحة", | ||
"لون", | ||
"فرشاة", | ||
"قماش", | ||
"فن", | ||
|
||
// Bengali | ||
"আঁকা", | ||
"চিত্রকর্ম", | ||
"রেখাচিত্র", | ||
"ক্যানভাস", | ||
"রঙ", | ||
"ব্রাশ", | ||
"প্যালেট", | ||
"শিল্প", | ||
|
||
// Russian | ||
"рисовать", | ||
"картина", | ||
"живопись", | ||
"рисунок", | ||
"кисть", | ||
"холст", | ||
"цвет", | ||
"палитра", | ||
"эскиз", | ||
"искусство", | ||
|
||
// Portuguese | ||
"pintar", | ||
"pintura", | ||
"desenhar", | ||
"desenho", | ||
"pincel", | ||
"tela", | ||
"cor", | ||
"paleta", | ||
"esboço", | ||
"arte", | ||
|
||
// Indonesian | ||
"melukis", | ||
"lukisan", | ||
"gambar", | ||
"kanvas", | ||
"kuas", | ||
"warna", | ||
"palet", | ||
"sketsa", | ||
"seni", | ||
|
||
// French | ||
"peindre", | ||
"peinture", | ||
"dessin", | ||
"dessiner", | ||
"pinceau", | ||
"toile", | ||
"couleur", | ||
"palette", | ||
"esquisse", | ||
"art", | ||
]; | ||
|
||
function hasPaintWord(text) { | ||
const lowerCaseText = text.toLowerCase(); | ||
return paintingWords.some((word) => lowerCaseText.includes(word)); | ||
} | ||
|
||
export default hasPaintWord; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters