1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3601],{56456:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/100-words/day-243",function(){return n(40541)}])},40541:function(e,t,n){"use strict";n.r(t),n.d(t,{meta:function(){return r}});var o=n(85893),a=n(11151),s=n(53841);let r={author:"Andrew Miller",date:"2024-12-13",title:"How much have I written this year...",description:"A lot that is for sure, but how do I get an accurate number",tags:["100 words","meta","word count","writing"]},MDXLayout=e=>(0,o.jsx)(s.B,Object.assign({meta:r},e));function _createMdxContent(e){let t=Object.assign({p:"p",code:"code"},(0,a.ah)(),e.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.p,{children:"As the end of this year of blog approaches it's end (I have about 20 more days to go), I am curious to know how many words I have written in total as most of these blog posts have gone over 100 words, probably averaging in the 200 - 300 word range."}),"\n",(0,o.jsx)(t.p,{children:"However I have been wondering how best to count how much I have written, do I include code and links in the count, what about any metadata? This is where we get into the mechanics of doing the counting. As I see it there are two options."}),"\n",(0,o.jsxs)(t.p,{children:["First would be to parse the ",(0,o.jsx)(t.code,{children:"mdx"})," files which are the source files for these posts, stripping out any metadata and code then summing them to get a total. In fact I have tried this using an AI to generate a script which needs some tweaking"]}),"\n",(0,o.jsx)(t.p,{children:"The other approach would be to scrape the website or RSS feed and pull out the relevant content to then get a total count."}),"\n",(0,o.jsx)(t.p,{children:"Honestly I'm not sure which would the best approach, I'm open to suggestions! (Let me know with a reply or a comment)"}),"\n",(0,o.jsx)(t.p,{children:"...except doing the count manually, I don't have time for that!"})]})}t.default=function(e={}){return(0,o.jsx)(MDXLayout,Object.assign({},e,{children:(0,o.jsx)(_createMdxContent,e)}))}}},function(e){e.O(0,[407,8819,4825,9774,2888,179],function(){return e(e.s=56456)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.