# Is there a tool to automatically detect type piracy?

**URL:** <https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721>\
**Category:** General Usage\
**Tags:** question, type-piracy\
**Created:** [June 26, 2019, 2:08pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721 "2019-06-26T14:08:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Post date:** [June 26, 2019, 2:08pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721/1 "2019-06-26T14:08:30Z")

</div>

Hi,

I think that I read here that someone has written a small script to detect type piracy, but I can not find it.

Thanks in advance,

Best,

---

<div class="post-metadata">

**Author:** ![fborda](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fborda/32/8654_2.png) [@fborda](https://discourse.julialang.org/u/fborda)\
**Post date:** [June 26, 2019, 2:22pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721/2 "2019-06-26T14:22:26Z")

</div>

Maybe this one?

> [@Pirate Hunter](https://discourse.julialang.org/t/pirate-hunter/20402):
>
> I made a script to hunt out type piracy. It isn’t perfect, but its not bad. invoke it by calling hunt on a module, function or list of methods. Or if you just call hunt() from the REPL it will search all modules currenlty loaded from Main. There are [27 pirate actions detected within the standard libraries.](https://github.com/JuliaLang/julia/issues/30945) These will likely show up when searching your own modules as you probably reference at very least some standard libraries at some point. So you might want to do some post processing to f…

---

<div class="post-metadata">

**Author:** ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Post date:** [June 26, 2019, 2:40pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721/3 "2019-06-26T14:40:57Z")

</div>

Yes! Thank you very much 🙂
