Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# viet-robot-please-detector
|
| 2 |
+
|
| 3 |
+
A micro helper that detects whether a Vietnamese command contains common polite
|
| 4 |
+
words such as:
|
| 5 |
+
|
| 6 |
+
- "vui lòng"
|
| 7 |
+
- "làm ơn"
|
| 8 |
+
- "giúp"
|
| 9 |
+
- "được không"
|
| 10 |
+
- "nhé"
|
| 11 |
+
|
| 12 |
+
Function:
|
| 13 |
+
|
| 14 |
+
```python
|
| 15 |
+
contains_polite_word(text: str) -> bool
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
returns `True` if at least one of these phrases appears (case-insensitive).
|
| 19 |
+
|
| 20 |
+
## License
|
| 21 |
+
|
| 22 |
+
MIT
|