https://github.com/r0mb0/italian_dictionary_classic_asp
Italian dictionary with appended functions in Classic ASP
https://github.com/r0mb0/italian_dictionary_classic_asp
Last synced: 3 months ago
JSON representation
Italian dictionary with appended functions in Classic ASP
- Host: GitHub
- URL: https://github.com/r0mb0/italian_dictionary_classic_asp
- Owner: R0mb0
- License: mit
- Created: 2025-02-11T10:20:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T13:31:19.000Z (over 1 year ago)
- Last Synced: 2025-03-01T18:17:19.992Z (over 1 year ago)
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# Italian dictionary in Classic ASP
[](https://app.codacy.com/gh/R0mb0/Italian_dictionary_classic_asp/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://github.com/R0mb0/Italian_dictionary_classic_asp)
[](https://github.com/R0mb0/Italian_dictionary_classic_asp)
[](https://opensource.org/license/mit)
[](http://paypal.me/R0mb0)
## `italian_dictionary.class.asp`'s avaible functions
- Initialize the class with the necessary words -> `Public Function initialize(ByVal lists)`
> where `list` must be a string with the list of dictionary files to add. The files inside the string must be separated with space.
> The dictionary files to choose are:
> - 1000_parole_italiane_comuni
> - 110000_parole_italiane_con_nomi_propri
> - 280000_parole_italiane
> - 400_parole_composte
> - 60000_parole_italiane
> - 660000_parole_italiane
> - 9000_nomi_propri
> - 95000_parole_italiane_con_nomi_propri
> - coniugazione_verbi
> - lista_38000_cognomi
> - lista_badwords
> - lista_cognomi
> - parole_uniche
>
> **This files has been taken from [paroleitaliane](https://github.com/napolux/paroleitaliane)**
- Or insert a path to load the saved state dictionary in a file
- Print all elements of dictionary -> `Public Function write_all_words()`
- Check if a word is in the dictionary -> `Public Function is_present(ByVal word)`
- Search a word inside the dictionary -> `Public Function search_word(ByVal word, ByVal is_array)`
> **This function is usefull to search a word inside the dictionary, for example if `word` = "cas" the function will return: "casa", "casina" and "casona"**
> - `word` is the word to search, it could be a part of a word, if an entire word is passed to the function, the function will return null.
> - `is_array` change the output of the function, if `true` the function will return an array with all results, else, will be returned a string
- Function to save to file the dictionary state -> `Public Function save_dictionary(ByVal path)`
> **Where `path` is the string with the location with the file to save location**
## How to use
> From: `Test.asp`
1. Initialize the class
```asp
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim dictionary
Set dictionary = new italian_dictionary
```
2. Fill the dictionary
- ```asp
dictionary.initialize("1000_parole_italiane_comuni 400_parole_composte")
```
- Or
```asp
dictionary.load_dictionary("path")
```
2. > Save the state of dictionary
```asp
dictionary.save_dictionary("path")
```
3. Interrogate the tree
Possibilities:
- Check if a word is in the dictionary
```asp
dictionary.is_present("casa")
```
- Search a word inside the tree
```asp
dictionary.search_word("cas", false)
%>
```