wikipedia_prosesize

Crates.iowikipedia_prosesize
lib.rswikipedia_prosesize
version0.3.0-rc.2
sourcesrc
created_at2023-02-14 04:41:48.763481
updated_at2024-06-13 06:11:48.662923
descriptionCount Wikipedia prose size
homepagehttps://www.mediawiki.org/wiki/mwbot-rs
repositoryhttps://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/
max_upload_size
id784597
size11,319
cratesio (github:mwbot-rs:cratesio)

documentation

README

wikipedia_prosesize

crates.io docs.rs docs (main) pipeline status coverage report

Calculate Wikipedia prose size

This crate is a rough port of the Wikipedia Prosesize script that allows for counting the bytes of prose on a page rather than the wikitext markup or generated HTML.

You will most likely fetch ImmutableWikicode using the parsoid crate.

The response from prosesize() provides the text-only prose size, word count and text-only references size. Enabling the optional serde-1 feature makes the size struct serializable and deserializable.

Contributing

wikipedia_prosesize is part of the mwbot-rs project. We're always looking for new contributors, please reach out if you're interested!

License

This crate is released under GPL-3.0-or-later. See COPYING for details.

Commit count: 0

cargo fmt