codebook 0.3.37

A code-aware spell checker library (dependency for codebook-lsp)
Documentation
1
2
3
4
5
6
7
8
9
// use codebook::dictionaries::downloader::DictionaryDownloader;

// #[test]
// fn test_downloader() {
//     let downloader = DictionaryDownloader::with_cache("../.cache/dictionaries");
//     let files = downloader.get("en").unwrap();
//     assert_eq!(files.aff_local_path, "../.cache/dictionaries/en_index.aff");
//     assert_eq!(files.dic_local_path, "../.cache/dictionaries/en_index.dic");
// }